hotspot/src/share/vm/runtime/init.cpp
changeset 36082 e734f3a55bdf
parent 34666 1c7168ea0034
child 36104 65f01ec9666f
--- a/hotspot/src/share/vm/runtime/init.cpp	Wed Feb 10 12:05:40 2016 +0100
+++ b/hotspot/src/share/vm/runtime/init.cpp	Wed Feb 10 12:08:37 2016 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -181,8 +181,7 @@
   }
 }
 
-
-static bool _init_completed = false;
+static volatile bool _init_completed = false;
 
 bool is_init_completed() {
   return _init_completed;