<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
On 21/11/2023 17:34, Philip Boutros wrote:<br>
<blockquote type="cite" cite="mid:CAAcTwy4RoebDc3SnpCLEnZSp+8K5DWRHL5x0zp_=Bu4B0D+hyg@mail.gmail.com">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Hi</div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">I
recently ran into a number of issues with virtual threads as
documented in this article. </div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><a href="https://medium.com/@phil_3582/java-virtual-threads-some-early-gotchas-to-look-out-for-f65df1bad0db?source=friends_link&sk=f1f6ed425c4d17cdc1188f85a0d13d4d" moz-do-not-send="true">https://medium.com/@phil_3582/java-virtual-threads-some-early-gotchas-to-look-out-for-f65df1bad0db?source=friends_link&sk=f1f6ed425c4d17cdc1188f85a0d13d4d</a><br>
</div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">(Friend
link, no paywall)</div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default" style=""><font face="arial, sans-serif">At least two of these issues
(HttpClient </font>thread ex<font face="arial, sans-serif">plosion
and </font>ReadableByteChannel/HttpResponseInputStream
deadlock)<span style="font-family:arial,sans-serif"> are in
the Java core libraries but I'm at a loss as to how to
proceed since I don't have Author status to even report them
to <a href="https://bugs.openjdk.org/" moz-do-not-send="true" class="moz-txt-link-freetext">https://bugs.openjdk.org/</a>
let alone fix and PR them myself. Some direction would be
appreciated. </span></div>
<br>
</div>
</blockquote>
<br>
Thanks for the link. There are a few things in the article that
don't look right, for example it says that several HttpClient
instances share connections but this isn't so. Another thing is that
the HTTP/2 spec allows a server to impose a limit on the number of
concurrent requests and it looks like this is happening here. I
think it might be useful to start a thread on the OpenJDK net-dev
list with the HTTP related issues as I think it should be possible
to explain most of these.<br>
<br>
On the issues with synchronized and pinning. Yes, this is
problematic right now. There is work in progress to help with this
and we hope to have changes in the loom repo soon for testing.<br>
<br>
-Alan.<br>
</body>
</html>