Skip to content

Commit

Permalink
8292368: [ppc64] internal error g1BarrierSet.inline.hpp assert(oopDes…
Browse files Browse the repository at this point in the history
…c::is_oop(pre_val, true)) failed: Error

Reviewed-by: eosterlund, shade
  • Loading branch information
TheRealMDoerr committed Aug 23, 2022
1 parent d92e00a commit cf00677
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/gc/shared/barrierSetNMethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ bool BarrierSetNMethod::nmethod_entry_barrier(nmethod* nm) {
// conversion that performs the load barriers. This is too subtle, so we instead
// perform an explicit keep alive call.
oop obj = NativeAccess<ON_PHANTOM_OOP_REF | AS_NO_KEEPALIVE>::oop_load(p);
Universe::heap()->keep_alive(obj);
if (obj != nullptr) {
Universe::heap()->keep_alive(obj);
}
}

virtual void do_oop(narrowOop* p) { ShouldNotReachHere(); }
Expand Down

1 comment on commit cf00677

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.