< 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,42 **** #include "runtime/stubCodeGenerator.hpp" // Implementation of StubCodeDesc ! StubCodeDesc* StubCodeDesc::_list = NULL; bool StubCodeDesc::_frozen = false; StubCodeDesc* StubCodeDesc::desc_for(address pc) { StubCodeDesc* p = _list; while (p != NULL && !p->contains(pc)) { --- 32,42 ---- #include "runtime/stubCodeGenerator.hpp" // Implementation of StubCodeDesc ! 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 >