You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2024/02/08 21:11:45 UTC
(tomcat) 02/04: Flag needs to be volatile
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit b33cc894b178809bbb98d805e264420ecf5239c9
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 f7a72a9606..590f1b19d9 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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org