<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="en-NL" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="en-NL">Yeah, LockSupport.park(). But that’s used by other things in the JVM too, right?<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:#2000"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="NL" style="mso-fareast-language:#2000">- </span>
<span lang="EN-US" style="mso-fareast-language:#2000">Rick<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="en-NL"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-ligatures:none;mso-fareast-language:#2000">From:</span></b><span lang="EN-US" style="mso-ligatures:none;mso-fareast-language:#2000"> Alan Bateman <alan.bateman@oracle.com>
<br>
<b>Sent:</b> Wednesday, 21 August 2024 14:40<br>
<b>To:</b> Rick Hendricksen <Rick.Hendricksen@vanderlande.com>; loom-dev@openjdk.org<br>
<b>Cc:</b> Dennis van den Berg <Dennis.van.den.Berg@vanderlande.com><br>
<b>Subject:</b> Re: java.lang.ThreadBuilders and java.lang.ThreadBuilders.newVirtualThread() are not public<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="en-NL"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0" width="100%" style="width:100.0%;background:white">
<tbody>
<tr>
<td style="border:solid #EF7B10 1.0pt;padding:2.25pt 2.25pt 2.25pt 2.25pt">
<p class="MsoNormal" align="center" style="text-align:center"><strong><span style="font-family:"Calibri",sans-serif;color:#EF7B10">Be aware</span></strong><span style="color:#EF7B10">: This email was created outside of Vanderlande. Be cautious of its contents
 and <strong><span style="font-family:"Calibri",sans-serif">do not click</span></strong> any links or attachments unless you recognise the sender and know the content is safe.</span><span style="color:#EF7B10;mso-ligatures:none;mso-fareast-language:#2000"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="en-NL"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="en-NL"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="en-NL">On 21/08/2024 11:04, Rick Hendricksen wrote:<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="en-NL">Hi Alan,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-NL"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-NL">The way we identify simulation related blocking operations is by setting a variable right before parking the thread. The scheduler then checks if that variable is null or not, and if null it was not a simulation related
 blocking operation and we wait until we get a simulation related blocking operation. We can get away with this because we know we are running on a single thread.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-NL" style="mso-ligatures:none;mso-fareast-language:#2000"><o:p> </o:p></span></p>
</blockquote>
<p class="MsoNormal"><span lang="en-NL" style="mso-ligatures:none;mso-fareast-language:#2000">Is this LockSupport.park or blocking on something else? I'm wondering if the park blocker is set as that is something we've been mulling over whether to expose to
 the scheduler.<br>
<br>
-Alan<o:p></o:p></span></p>
</div>
</div>
<hr color="EF7B10" size="3">
<p style="font-size: 9.0pt; font-family: 'Calibri';">** Disclaimer **</p>
<p style="font-size: 9.0pt; font-family: 'Calibri';">This e-mail, including any attachments, may include proprietary and confidential information of Vanderlande and may only be read by the person or those persons to whom it is addressed.
<br>
This document is forwarded to you in such a form (e-mail) that Vanderlande cannot guarantee the completeness and/or correctness of its contents and information.
<br>
If you have received this e-mail message in error, please notify us immediately. <br>
Please also delete this document from your computer. <br>
This document may not be reproduced, copied, distributed, published, modified, or furnished to third parties, without the prior written consent of Vanderlande.</p>
</body>
</html>