On Thu, 4 Sep 2025 10:18:27 GMT, Fredrik Bredberg <[email protected]> wrote:
>> src/hotspot/share/runtime/basicLock.hpp line 53:
>>
>>> 51: static int displaced_header_offset_in_bytes() { return
>>> metadata_offset_in_bytes(); }
>>> 52:
>>> 53: // For lightweight locking
>>
>> If the following are for lightweight locking then what are the two previous
>> for?
>
> For something old and soon forgotten. :)
> After I had integrated some platforms I realized that this was no longer
> needed, but since I want to keep this PR clean of platform changes, I have
> added this to the [next cleanup](https://bugs.openjdk.org/browse/JDK-8365191).
This makes sense to change the displaced header names in BasicLock with the
changes to various disp_hdr and other register names in the next cleanup.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27041#discussion_r2321704905