< prev index next >
src/hotspot/share/gc/shared/barrierSetNMethod.cpp
Print this page
rev 57113 : 8230765: Implement nmethod barrier for x86_32 platforms
Reviewed-by: rkennke, eosterlund
@@ -30,13 +30,11 @@
#include "logging/log.hpp"
#include "runtime/thread.hpp"
#include "utilities/debug.hpp"
int BarrierSetNMethod::disarmed_value() const {
- char* disarmed_addr = reinterpret_cast<char*>(Thread::current());
- disarmed_addr += in_bytes(thread_disarmed_offset());
- return *reinterpret_cast<int*>(disarmed_addr);
+ return *disarmed_value_address();
}
bool BarrierSetNMethod::supports_entry_barrier(nmethod* nm) {
if (nm->method()->is_method_handle_intrinsic()) {
return false;
< prev index next >