On Wed, 9 Sep 2026 09:19:31 GMT, Fredrik Bredberg <[email protected]> wrote:

>> This PR removes displaced-mark related code from the Serviceability Agent, 
>> which has become obsolete since 
>> [JDK-8389325](https://bugs.openjdk.org/browse/JDK-8389325) removed the 
>> `UseObjectMonitorTable` flag.
>> 
>> It also aligns the SA's mark-word related `printOn()` and `hasMonitor()` 
>> functions to their respective C++ functions, `markWord::print_on()` and 
>> `markWord::has_monitor()`.
>> 
>> Because the displaced-mark related code was removed, the 
>> `identityHashValueFor()` has been reduced to one line, just returning the 
>> hash code directly from the object's mark-word.
>> 
>> Passes tier1-3 on supported platforms. I also successfully ran 
>> `TEST="hotspot/jtreg/serviceability/sa"` on my local machine.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Fredrik Bredberg has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Updated after review

Thank you all for the reviews.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/32758#issuecomment-5615651121

Reply via email to