8205050: ZGC: Incorrect use of RootAccess in ZHeapIterator
Reviewed-by: stefank, eosterlund
This commit is contained in:
parent
57203871dd
commit
ec4c0637f8
@ -63,7 +63,7 @@ public:
|
|||||||
virtual void do_oop(oop* p) {
|
virtual void do_oop(oop* p) {
|
||||||
// Load barrier needed here for the same reason we
|
// Load barrier needed here for the same reason we
|
||||||
// need fixup_partial_loads() in ZHeap::mark_end()
|
// need fixup_partial_loads() in ZHeap::mark_end()
|
||||||
const oop obj = RootAccess<>::oop_load(p);
|
const oop obj = ZBarrier::load_barrier_on_oop_field(p);
|
||||||
_iter->push(obj);
|
_iter->push(obj);
|
||||||
_iter->drain(_cl);
|
_iter->drain(_cl);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user