This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 7aaead13e41b0b6c5ee4eba34668cd5e6c66906b Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Feb 8 18:52:50 2024 +0000 Flag needs to be volatile --- java/org/apache/tomcat/jni/Library.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/jni/Library.java b/java/org/apache/tomcat/jni/Library.java index cf05501d54..2576beecd1 100644 --- a/java/org/apache/tomcat/jni/Library.java +++ b/java/org/apache/tomcat/jni/Library.java @@ -32,7 +32,7 @@ public final class Library { */ private static Library _instance = null; - private static boolean initialized = false; + private static volatile boolean initialized = false; private Library() throws Exception { boolean loaded = false; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org