<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    On 25/06/2024 05:05, 何品(虎鸣) wrote:<br>
    <blockquote type="cite" cite="mid:69889f55-3e40-4de4-b363-dbc0850febde.hepin.p@alibaba-inc.com">
      
      <div class="__aliyun_email_body_block">
        <div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;">The code
            below will dead lock</span></div>
        <div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;"><br>
          </span></div>
        <div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;"><br>
          </span></div>
        <div style="clear:both;"><span style="font-family:Tahoma,Arial,STHeiti,SimSun;"><span>-Djdk.virtualThreadScheduler.parallelism=1</span></span>
          <div style="clear:both;">-Djdk.virtualThreadScheduler.maxPoolSize=1</div>
          <div><span>-Djdk.virtualThreadScheduler.minRunnable=1</span></div>
          <span style="font-family:Tahoma,Arial,STHeiti,SimSun;"></span><br>
        </div>
      </div>
    </blockquote>
    Right now, class initializer execute with some VM frames on the
    stack so the thread is pinned. The priority right is object monitors
    but class loading and initialization is something that needs to be
    re-examined next.<br>
    <br>
    -Alan<br>
  </body>
</html>