< prev index next >

src/hotspot/cpu/aarch64/gc/shared/barrierSetNMethod_aarch64.cpp

Print this page
*** 26,10 ***
--- 26,11 ---
  #include "code/codeCache.hpp"
  #include "code/nativeInst.hpp"
  #include "gc/shared/barrierSetNMethod.hpp"
  #include "logging/log.hpp"
  #include "memory/resourceArea.hpp"
+ #include "runtime/frame.inline.hpp"
  #include "runtime/sharedRuntime.hpp"
  #include "runtime/registerMap.hpp"
  #include "runtime/thread.hpp"
  #include "utilities/align.hpp"
  #include "utilities/debug.hpp"

*** 151,10 ***
--- 152,19 ---
    NativeNMethodBarrier* barrier = native_nmethod_barrier(nm);
  
    barrier->set_value(disarmed_value());
  }
  
+ void BarrierSetNMethod::arm(nmethod* nm, int arm_value) {
+   if (!supports_entry_barrier(nm)) {
+     return;
+   }
+ 
+   NativeNMethodBarrier* barrier = native_nmethod_barrier(nm);
+   barrier->set_value(arm_value);
+ }
+ 
  bool BarrierSetNMethod::is_armed(nmethod* nm) {
    if (!supports_entry_barrier(nm)) {
      return false;
    }
  
< prev index next >