8254319: Shenandoah: Interpreter native-LRB needs to activate during HAS_FORWARDED

Reviewed-by: shade, zgu
This commit is contained in:
Roman Kennke 2020-10-09 19:07:14 +00:00
parent be26972432
commit 536b35b53a
2 changed files with 2 additions and 2 deletions
src/hotspot/cpu

@ -282,7 +282,7 @@ void ShenandoahBarrierSetAssembler::load_reference_barrier_native(MacroAssembler
__ ldrb(rscratch2, gc_state);
// Check for heap in evacuation phase
__ tbz(rscratch2, ShenandoahHeap::EVACUATION_BITPOS, done);
__ tbz(rscratch2, ShenandoahHeap::HAS_FORWARDED_BITPOS, done);
__ mov(rscratch2, dst);
__ push_call_clobbered_registers();

@ -366,7 +366,7 @@ void ShenandoahBarrierSetAssembler::load_reference_barrier_native(MacroAssembler
assert_different_registers(dst, thread);
Address gc_state(thread, in_bytes(ShenandoahThreadLocalData::gc_state_offset()));
__ testb(gc_state, ShenandoahHeap::EVACUATION);
__ testb(gc_state, ShenandoahHeap::HAS_FORWARDED);
#ifndef _LP64
__ pop(thread);
#endif