<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">On 06/08/2022 10:18, Egor Ushakov
wrote:<br>
</div>
<blockquote type="cite" cite="mid:ad849200-655d-874d-ba0b-7c74b9e2e465@jetbrains.com">
Hi Chris,<br>
<br>
I was able to somewhat reproduce it with jdb:<br>
compile any simple samle app like<br>
<pre style="background-color:#ffffff;color:#080808;font-family:'JetBrains Mono',monospace;font-size:9.8pt;"><span style="color:#0033b3;">public class </span><span style="color:#000000;">A </span>{
<span style="color:#0033b3;">public static void </span><span style="color:#00627a;">main</span>(<span style="color:#000000;">String</span>[] args) {
<span style="color:#000000;">System</span>.<span style="color:#871094;font-style:italic;">out</span>.println(<span style="color:#067d17;">"A"</span>); // line 3
}
}
</pre>
<br>
</blockquote>
I tried this with JDK 11, 17 and 19 and don't see any significant
difference in the co-location. When you do "next" then JDI will get
events related to VM callout to checkPackageAccess. With JDK 11 I
see 3 co-located events (2 entry, 1 exit) for the main thread. The
libs code has changed a bit since then and for JDK 17 and 19 there
are 5 co-located events (4 entry, 1 exit). I don't recall seeing
anything go by that changed the code that decides if events are
deferred. I think Chris is right that if there was something was
broken then there would be test failures and bug reports. So I guess
the question is whether the co-location with this example does
reflect what you are seeing or if there is something else going on.<br>
<br>
-Alan<br>
</body>
</html>