This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 27632c78a3 Flag needs to be volatile
27632c78a3 is described below
commit 27632c78a3ad078a40b795f845e7898b6dd30376
Author: Mark Thomas <[email protected]>
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 8354406450..908a9a8b56 100644
--- a/java/org/apache/tomcat/jni/Library.java
+++ b/java/org/apache/tomcat/jni/Library.java
@@ -29,7 +29,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: [email protected]
For additional commands, e-mail: [email protected]