<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
On 26/09/2022 22:50, Ravi Kumar Pasumarthy wrote:<br>
<blockquote type="cite" cite="mid:CA+2_+P5Cs+p00wvRY-1S1Bt9+9QA1UceUuU4izSNE5C+b7gC5w@mail.gmail.com">
<div dir="ltr">
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:small">
<div dir="ltr">
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:small">Hello folks,</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:small">I was reading through the <a href="https://openjdk.org/jeps/425#Networking" target="_blank" moz-do-not-send="true">JEP-425</a>. The
following statement is stated in the JEP:<br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:small"><span style="color:rgb(255,0,0)"><i>The stream decoders and
encoders used by <code>InputStreamReader</code> and <code>OutputStreamWriter</code>
now use the same lock as the enclosing <code>InputStreamReader</code>
or <code>OutputStreamWriter</code>.</i></span></div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:small"><i><br>
</i></div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:small">I'm assuming that the
statement should be as follows:</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:small"><span style="color:rgb(56,118,29)"><i>The stream decoders and
encoders used by <code>InputStreamReader</code> and <code>OutputStreamWriter</code>
now use the same lock as the enclosing <code>InputStream</code>
or <code>OutputStream</code>.</i></span></div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:small"> </div>
<div><br>
</div>
<div>
<div style="font-family:trebuchet
ms,sans-serif;font-size:small" class="gmail_default">Let
me know if the latter is correct, and can be
incorporated into the JEP documentation, or if my
understanding is wrong.<br>
</div>
</div>
</div>
</div>
<br>
</div>
</blockquote>
The JEP text is correct, it's the InputStreamReader or
OutputStreamWriter instance that is used as the lock object.<br>
<br>
Do you have any more context for the question? I'm wondering if you
are observing a behavior change. The locking in this area was highly
problematic and some of the undocumented and under-the-covers
locking had to be adjusted. So far there hasn't been any feedback
from anyone that has noticed anything but maybe you have?<br>
<br>
-Alan<br>
</body>
</html>