Skip to content

Commit a58cf16

Browse files
Fairoz MatteTobiHartmann
Fairoz Matte
authored andcommittedSep 1, 2021
8272563: assert(is_double_stack() && !is_virtual()) failed: type check
Reviewed-by: thartmann, iveresov
1 parent 0e14bf7 commit a58cf16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/hotspot/share/gc/shared/c1/cardTableBarrierSetC1.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ void CardTableBarrierSetC1::post_barrier(LIRAccess& access, LIR_OprDesc* addr, L
6767
#else
6868
LIR_Opr tmp = gen->new_pointer_register();
6969
if (TwoOperandLIRForm) {
70-
__ move(addr, tmp);
70+
LIR_Opr addr_opr = LIR_OprFact::address(new LIR_Address(addr, addr->type()));
71+
__ leal(addr_opr, tmp);
7172
__ unsigned_shift_right(tmp, CardTable::card_shift, tmp);
7273
} else {
7374
__ unsigned_shift_right(addr, CardTable::card_shift, tmp);

0 commit comments

Comments
 (0)
Please sign in to comment.