8269110: ZGC: Remove dead code in zBarrier
Reviewed-by: pliden
This commit is contained in:
parent
b0e186792e
commit
589f084161
@ -97,10 +97,8 @@ public:
|
||||
static oop weak_load_barrier_on_oop_field(volatile oop* p);
|
||||
static oop weak_load_barrier_on_oop_field_preloaded(volatile oop* p, oop o);
|
||||
static oop weak_load_barrier_on_weak_oop(oop o);
|
||||
static oop weak_load_barrier_on_weak_oop_field(volatile oop* p);
|
||||
static oop weak_load_barrier_on_weak_oop_field_preloaded(volatile oop* p, oop o);
|
||||
static oop weak_load_barrier_on_phantom_oop(oop o);
|
||||
static oop weak_load_barrier_on_phantom_oop_field(volatile oop* p);
|
||||
static oop weak_load_barrier_on_phantom_oop_field_preloaded(volatile oop* p, oop o);
|
||||
|
||||
// Is alive barrier
|
||||
@ -116,7 +114,6 @@ public:
|
||||
// Mark barrier
|
||||
static void mark_barrier_on_oop_field(volatile oop* p, bool finalizable);
|
||||
static void mark_barrier_on_oop_array(volatile oop* p, size_t length, bool finalizable);
|
||||
static void mark_barrier_on_invisible_root_oop_field(oop* p);
|
||||
|
||||
// Narrow oop variants, never used.
|
||||
static oop load_barrier_on_oop_field(volatile narrowOop* p);
|
||||
|
@ -287,11 +287,6 @@ inline oop ZBarrier::weak_load_barrier_on_weak_oop(oop o) {
|
||||
return weak_load_barrier_on_weak_oop_field_preloaded((oop*)NULL, o);
|
||||
}
|
||||
|
||||
inline oop ZBarrier::weak_load_barrier_on_weak_oop_field(volatile oop* p) {
|
||||
const oop o = Atomic::load(p);
|
||||
return weak_load_barrier_on_weak_oop_field_preloaded(p, o);
|
||||
}
|
||||
|
||||
inline oop ZBarrier::weak_load_barrier_on_weak_oop_field_preloaded(volatile oop* p, oop o) {
|
||||
verify_on_weak(p);
|
||||
|
||||
@ -306,11 +301,6 @@ inline oop ZBarrier::weak_load_barrier_on_phantom_oop(oop o) {
|
||||
return weak_load_barrier_on_phantom_oop_field_preloaded((oop*)NULL, o);
|
||||
}
|
||||
|
||||
inline oop ZBarrier::weak_load_barrier_on_phantom_oop_field(volatile oop* p) {
|
||||
const oop o = Atomic::load(p);
|
||||
return weak_load_barrier_on_phantom_oop_field_preloaded(p, o);
|
||||
}
|
||||
|
||||
inline oop ZBarrier::weak_load_barrier_on_phantom_oop_field_preloaded(volatile oop* p, oop o) {
|
||||
if (ZResurrection::is_blocked()) {
|
||||
return barrier<is_good_or_null_fast_path, weak_load_barrier_on_phantom_oop_slow_path>(p, o);
|
||||
|
Loading…
Reference in New Issue
Block a user