<div dir="ltr">It appears to be a similar issue. However, I have a question: why is there a high probability of reproducing deadlock when using the VM parameter -Djdk.tracePinnedThreads, while it is difficult to reproduce without using this VM parameter? <div>This observation has also been confirmed in some of my practical applications, where adding the parameter leads to deadlocks after a few requests, while running without the parameter remains stable for a long time.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Alan Bateman <<a href="mailto:Alan.Bateman@oracle.com">Alan.Bateman@oracle.com</a>> 于2023年8月3日周四 18:29写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

  
  <div>
    <br>
    <br>
    <div>On 03/08/2023 09:14, qia nxiao wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>
          <p style="margin:0px;text-align:justify;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:10.5px;line-height:normal;font-family:Helvetica">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.</p>
          <p style="margin:0px;text-align:justify;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:10.5px;line-height:normal;font-family:Helvetica">I
            am not familiar with the exact reason behind this issue and
            I would like to know if there is a solution.<span> </span></p>
          <p style="margin:0px;text-align:justify;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:10.5px;line-height:normal;font-family:Helvetica">Below
            is a test case that I have, and there is a certain
            probability of it getting stuck when using this parameter.</p>
          <p style="margin:0px;text-align:justify;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:10.5px;line-height:normal;font-family:Helvetica;min-height:12px"><br>
          </p>
          <p style="margin:0px;text-align:justify;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:10.5px;line-height:normal;font-family:Helvetica;color:rgb(5,99,193)"><span style="text-decoration-line:underline"><a href="https://github.com/zenghu1chen/loom-compatibility-test/blob/main/src/main/java/org/example/TracePinnedThreadsOptionTest.java" target="_blank">https://github.com/zenghu1chen/loom-compatibility-test/blob/main/src/main/java/org/example/TracePinnedThreadsOptionTest.java</a></span></p>
          <p><br>
          </p>
        </div>
      </div>
    </blockquote>
    <br>
    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.<br>
    <br>
    -Alan<br>
    <br>
    [1]
    <a href="https://mail.openjdk.org/pipermail/loom-dev/2023-July/005989.html" target="_blank">https://mail.openjdk.org/pipermail/loom-dev/2023-July/005989.html</a><br>
  </div>

</blockquote></div>