RFR: 8304745: Lazily initialize byte[] in java.io.BufferedInputStream [v2]

Daniel Fuchs dfuchs at openjdk.org
Thu Mar 23 19:58:33 UTC 2023


On Thu, 23 Mar 2023 19:53:13 GMT, Chen Liang <liach at openjdk.org> wrote:

> The lazy creation only happens if it's the exact BufferedInputStream class, which is already handled like the internal lock.

Maybe, but how does it play with asynchronous close?

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

PR Comment: https://git.openjdk.org/jdk/pull/13150#issuecomment-1481809027


More information about the core-libs-dev mailing list