< prev index next >

src/hotspot/share/gc/shared/barrierSetNMethod.cpp

Print this page
rev 57093 : 8230765: Implement nmethod barrier for x86_32 platforms

*** 30,42 **** --- 30,46 ---- #include "logging/log.hpp" #include "runtime/thread.hpp" #include "utilities/debug.hpp" int BarrierSetNMethod::disarmed_value() const { + #ifdef _LP64 char* disarmed_addr = reinterpret_cast<char*>(Thread::current()); disarmed_addr += in_bytes(thread_disarmed_offset()); return *reinterpret_cast<int*>(disarmed_addr); + #else + return *reinterpret_cast<int*>(disarmed_value_address()); + #endif // _LP64 } bool BarrierSetNMethod::supports_entry_barrier(nmethod* nm) { if (nm->method()->is_method_handle_intrinsic()) { return false;
< prev index next >