Skip to content

Commit

Permalink
Merge branch 'upstream-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Datadog Syncup Service committed Sep 19, 2024
2 parents 6948aa5 + 3bb8de3 commit a866fe4
Show file tree
Hide file tree
Showing 65 changed files with 1,386 additions and 266 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/aarch64/gc/z/zAddress_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static size_t probe_valid_max_address_bit() {
}

size_t ZPlatformAddressOffsetBits() {
const static size_t valid_max_address_offset_bits = probe_valid_max_address_bit() + 1;
static const size_t valid_max_address_offset_bits = probe_valid_max_address_bit() + 1;
const size_t max_address_offset_bits = valid_max_address_offset_bits - 3;
const size_t min_address_offset_bits = max_address_offset_bits - 2;
const size_t address_offset = round_up_power_of_2(MaxHeapSize * ZVirtualToPhysicalRatio);
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/ppc/c1_MacroAssembler_ppc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void C1_MacroAssembler::lock_object(Register Rmark, Register Roop, Register Rbox
}

if (LockingMode == LM_LIGHTWEIGHT) {
lightweight_lock(Roop, Rmark, Rscratch, slow_int);
lightweight_lock(Rbox, Roop, Rmark, Rscratch, slow_int);
} else if (LockingMode == LM_LEGACY) {
// ... and mark it unlocked.
ori(Rmark, Rmark, markWord::unlocked_value);
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/cpu/ppc/c2_MacroAssembler_ppc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@

void C2_MacroAssembler::fast_lock_lightweight(ConditionRegister flag, Register obj, Register box,
Register tmp1, Register tmp2, Register tmp3) {
compiler_fast_lock_lightweight_object(flag, obj, tmp1, tmp2, tmp3);
compiler_fast_lock_lightweight_object(flag, obj, box, tmp1, tmp2, tmp3);
}

void C2_MacroAssembler::fast_unlock_lightweight(ConditionRegister flag, Register obj, Register box,
Register tmp1, Register tmp2, Register tmp3) {
compiler_fast_unlock_lightweight_object(flag, obj, tmp1, tmp2, tmp3);
compiler_fast_unlock_lightweight_object(flag, obj, box, tmp1, tmp2, tmp3);
}

// Intrinsics for CompactStrings
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/ppc/gc/z/zAddress_ppc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static size_t probe_valid_max_address_bit() {
}

size_t ZPlatformAddressOffsetBits() {
const static size_t valid_max_address_offset_bits = probe_valid_max_address_bit() + 1;
static const size_t valid_max_address_offset_bits = probe_valid_max_address_bit() + 1;
const size_t max_address_offset_bits = valid_max_address_offset_bits - 3;
const size_t min_address_offset_bits = max_address_offset_bits - 2;
const size_t address_offset = round_up_power_of_2(MaxHeapSize * ZVirtualToPhysicalRatio);
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/ppc/interp_masm_ppc_64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ void InterpreterMacroAssembler::lock_object(Register monitor, Register object) {
}

if (LockingMode == LM_LIGHTWEIGHT) {
lightweight_lock(object, header, tmp, slow_case);
lightweight_lock(monitor, object, header, tmp, slow_case);
b(count_locking);
} else if (LockingMode == LM_LEGACY) {
// Load markWord from object into header.
Expand Down
Loading

0 comments on commit a866fe4

Please sign in to comment.