RFR: 8316746: Top of lock-stack does not match the unlocked object [v3]
Roman Kennke
rkennke at openjdk.org
Thu Sep 28 12:30:27 UTC 2023
On Thu, 28 Sep 2023 10:38:52 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:
>> I think we need to support "Top of lock-stack does not match the unlocked object" and take the slow path. Reason: see JBS issue.
>> Currently only PPC64, x86_64 and aarch64 code. I'd like to get feedback before implementing it for other platforms (needed for all platforms).
>
> Martin Doerr has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
>
> - Pass may_be_unordered information to lightweight_unlock.
> - Merge remote-tracking branch 'origin' into 8316746_lock_stack
> - Add x86_64 and aarch64 implementation.
> - 8316746: Top of lock-stack does not match the unlocked object
src/hotspot/cpu/ppc/macroAssembler_ppc.cpp line 4071:
> 4069: // Check if the top of the lock-stack matches the unlocked object.
> 4070: addi(temp, temp, -oopSize);
> 4071: if (may_be_unordered) {
I guess there is no need to call the slow-path here. Simply don't emit the assertion should be good enough, right?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15903#discussion_r1340065560
More information about the hotspot-dev
mailing list