RFR: 8335743: jhsdb jstack cannot print some information on the waiting thread [v2]

KIRIYAMA Takuya duke at openjdk.org
Mon Jul 8 12:20:34 UTC 2024


On Mon, 8 Jul 2024 06:52:34 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> KIRIYAMA Takuya has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8335743: jhsdb jstack cannot print some information on the waiting thread
>
> test/hotspot/jtreg/serviceability/sa/LingeredAppWithLock.java line 54:
> 
>> 52:         Thread objectLock = new Thread(() -> lockMethod(classLock1));
>> 53:         Thread primitiveLock = new Thread(() -> lockMethod(int.class));
>> 54:         Thread objectWait = new Thread(() -> waitMethod(new Object()));
> 
> Use of `new Object()` could be problematic here as the JIT can recognise that this is a non-escaping object and elide the synchronization.

Hello, @dholmes-ora, thank you for your advice.
As you pointed out, there was a problem. I fixed it, so please check it again.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20049#discussion_r1668521793


More information about the serviceability-dev mailing list