58
59 ByteSize thread_disarmed_guard_value_offset() const;
60 void set_thread_disarmed_guard_value(Thread* thread);
61
62 int disarmed_guard_value() const;
63
64 static int nmethod_stub_entry_barrier(address* return_address_ptr);
65 bool nmethod_osr_entry_barrier(nmethod* nm);
66 bool is_armed(nmethod* nm);
67 void arm(nmethod* nm) { guard_with(nm, armed); }
68 void disarm(nmethod* nm);
69 void make_not_entrant(nmethod* nm);
70 bool is_not_entrant(nmethod* nm);
71
72 void guard_with(nmethod* nm, int value);
73
74 virtual void arm_all_nmethods();
75
76 virtual oop oop_load_no_keepalive(const nmethod* nm, int index);
77 virtual oop oop_load_phantom(const nmethod* nm, int index);
78 };
79
80
81 #endif // SHARE_GC_SHARED_BARRIERSETNMETHOD_HPP
|
58
59 ByteSize thread_disarmed_guard_value_offset() const;
60 void set_thread_disarmed_guard_value(Thread* thread);
61
62 int disarmed_guard_value() const;
63
64 static int nmethod_stub_entry_barrier(address* return_address_ptr);
65 bool nmethod_osr_entry_barrier(nmethod* nm);
66 bool is_armed(nmethod* nm);
67 void arm(nmethod* nm) { guard_with(nm, armed); }
68 void disarm(nmethod* nm);
69 void make_not_entrant(nmethod* nm);
70 bool is_not_entrant(nmethod* nm);
71
72 void guard_with(nmethod* nm, int value);
73
74 virtual void arm_all_nmethods();
75
76 virtual oop oop_load_no_keepalive(const nmethod* nm, int index);
77 virtual oop oop_load_phantom(const nmethod* nm, int index);
78
79 virtual void finalize_relocations(nmethod* nm) {}
80 };
81
82
83 #endif // SHARE_GC_SHARED_BARRIERSETNMETHOD_HPP
|