Using the VM parameter -Djdk.tracePinnedThreads has a probability of causing the application to hang

Alan Bateman Alan.Bateman at oracle.com
Thu Aug 3 10:29:03 UTC 2023



On 03/08/2023 09:14, qia nxiao wrote:
>
> Hello everyone, I have noticed that in certain situations, there is a 
> probability that using the VM parameter -Djdk.tracePinnedThreads can 
> cause the application to hang.
>
> I am not familiar with the exact reason behind this issue and I would 
> like to know if there is a solution.
>
> Below is a test case that I have, and there is a certain probability 
> of it getting stuck when using this parameter.
>
>
> https://github.com/zenghu1chen/loom-compatibility-test/blob/main/src/main/java/org/example/TracePinnedThreadsOptionTest.java
>
>

This looks to the same issue that was discussed recently [1] where the 
same j.u.c. lock is being used from threads that are pinned and not pinned.

-Alan

[1] https://mail.openjdk.org/pipermail/loom-dev/2023-July/005989.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230803/4da998c3/attachment.htm>


More information about the loom-dev mailing list