提交 78930531 编写于 作者: P pliden

8205050: ZGC: Incorrect use of RootAccess in ZHeapIterator

Reviewed-by: stefank, eosterlund
上级 53bc3da1
......@@ -63,7 +63,7 @@ public:
virtual void do_oop(oop* p) {
// Load barrier needed here for the same reason we
// 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->drain(_cl);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册