< prev index next >

src/hotspot/share/runtime/stubCodeGenerator.cpp

Print this page
rev 51308 : 8206267: Unsafe publication of StubCodeDesc leads to crashes
Reviewed-by: kvn

@@ -32,11 +32,11 @@
 #include "runtime/stubCodeGenerator.hpp"
 
 
 // Implementation of StubCodeDesc
 
-StubCodeDesc* StubCodeDesc::_list = NULL;
+StubCodeDesc *volatile StubCodeDesc::_list = NULL;
 bool          StubCodeDesc::_frozen = false;
 
 StubCodeDesc* StubCodeDesc::desc_for(address pc) {
   StubCodeDesc* p = _list;
   while (p != NULL && !p->contains(pc)) {
< prev index next >