This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 4471b2a54975a7afc79cfbd33387f7f19f45df07 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Feb 8 21:17:24 2024 +0000 Need for force GC to avoid duplicate clean-up (which triggers a crash) --- java/org/apache/catalina/core/AprLifecycleListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java/org/apache/catalina/core/AprLifecycleListener.java b/java/org/apache/catalina/core/AprLifecycleListener.java index 28bdee051b..ffcc694e6f 100644 --- a/java/org/apache/catalina/core/AprLifecycleListener.java +++ b/java/org/apache/catalina/core/AprLifecycleListener.java @@ -176,6 +176,8 @@ public class AprLifecycleListener implements LifecycleListener { private static void terminateAPR() { Library.terminatePrepare(); + // Need to force GC here as some components do APR clean-up in finalize() + System.gc(); aprInitialized = false; aprAvailable = false; fipsModeActive = false; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org