RFR: 8330748: ByteArrayOutputStream.writeTo(OutputStream) pins carrier [v2]

Viktor Klang vklang at openjdk.org
Tue Apr 23 07:14:31 UTC 2024


On Mon, 22 Apr 2024 19:49:44 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Prevent blocking due to a carrier thread not being released when `ByteArrayOutputStream.writeTo` is invoked from a virtual thread.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Correct ID in test @bug tag

Has the alternative of moving to a j.u.c.Lock (Needs Reentrant or not?) been explored/benchmarked?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18901#issuecomment-2071589121


More information about the core-libs-dev mailing list