@@ -391,8 +391,8 @@ void ZBarrierSetAssembler::store_barrier_fast(MacroAssembler* masm,
391
391
if (rnew_zaddress != noreg) {
392
392
// noreg means null; no need to color
393
393
__ movptr (rnew_zpointer, rnew_zaddress);
394
- __ relocate (barrier_Relocation::spec (), ZBarrierRelocationFormatLoadGoodBeforeShl);
395
394
__ shlq (rnew_zpointer, barrier_Relocation::unpatched);
395
+ __ relocate (barrier_Relocation::spec (), ZBarrierRelocationFormatLoadGoodAfterShX);
396
396
__ orq_imm32 (rnew_zpointer, barrier_Relocation::unpatched);
397
397
__ relocate (barrier_Relocation::spec (), ZBarrierRelocationFormatStoreGoodAfterOr);
398
398
}
@@ -969,13 +969,13 @@ void ZBarrierSetAssembler::try_resolve_jobject_in_native(MacroAssembler* masm,
969
969
#define __ ce->masm ()->
970
970
971
971
static void z_uncolor(LIR_Assembler* ce, LIR_Opr ref) {
972
- __ relocate (barrier_Relocation::spec (), ZBarrierRelocationFormatLoadGoodBeforeShl);
973
972
__ shrq (ref->as_register (), barrier_Relocation::unpatched);
973
+ __ relocate (barrier_Relocation::spec (), ZBarrierRelocationFormatLoadGoodAfterShX);
974
974
}
975
975
976
976
static void z_color (LIR_Assembler* ce, LIR_Opr ref) {
977
- __ relocate (barrier_Relocation::spec (), ZBarrierRelocationFormatLoadGoodBeforeShl);
978
977
__ shlq (ref->as_register (), barrier_Relocation::unpatched);
978
+ __ relocate (barrier_Relocation::spec (), ZBarrierRelocationFormatLoadGoodAfterShX);
979
979
__ orq_imm32 (ref->as_register (), barrier_Relocation::unpatched);
980
980
__ relocate (barrier_Relocation::spec (), ZBarrierRelocationFormatStoreGoodAfterOr);
981
981
}
@@ -1278,8 +1278,8 @@ void ZBarrierSetAssembler::generate_c2_store_barrier_stub(MacroAssembler* masm,
1278
1278
1279
1279
static int patch_barrier_relocation_offset (int format) {
1280
1280
switch (format) {
1281
- case ZBarrierRelocationFormatLoadGoodBeforeShl :
1282
- return 3 ;
1281
+ case ZBarrierRelocationFormatLoadGoodAfterShX :
1282
+ return - 1 ;
1283
1283
1284
1284
case ZBarrierRelocationFormatStoreGoodAfterCmp:
1285
1285
return -2 ;
@@ -1300,7 +1300,7 @@ static int patch_barrier_relocation_offset(int format) {
1300
1300
1301
1301
static uint16_t patch_barrier_relocation_value (int format) {
1302
1302
switch (format) {
1303
- case ZBarrierRelocationFormatLoadGoodBeforeShl :
1303
+ case ZBarrierRelocationFormatLoadGoodAfterShX :
1304
1304
return (uint16_t )ZPointerLoadShift;
1305
1305
1306
1306
case ZBarrierRelocationFormatMarkBadAfterTest:
@@ -1327,7 +1327,7 @@ void ZBarrierSetAssembler::patch_barrier_relocation(address addr, int format) {
1327
1327
const int offset = patch_barrier_relocation_offset (format);
1328
1328
const uint16_t value = patch_barrier_relocation_value (format);
1329
1329
uint8_t * const patch_addr = (uint8_t *)addr + offset;
1330
- if (format == ZBarrierRelocationFormatLoadGoodBeforeShl ) {
1330
+ if (format == ZBarrierRelocationFormatLoadGoodAfterShX ) {
1331
1331
*patch_addr = (uint8_t )value;
1332
1332
} else {
1333
1333
*(uint16_t *)patch_addr = value;
0 commit comments