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

Sergey Tsypanov stsypanov at openjdk.org
Thu Apr 6 11:20:31 UTC 2023


On Wed, 22 Mar 2023 20:34:08 GMT, Sergey Tsypanov <stsypanov at openjdk.org> wrote:

> By default `BufferedInputStream` is constructed with internal buffer with capacity 8192. In some cases this buffer is never used, e.g. when we call `IS.readNBytes()` or `IS.readAllBytes()` (relying on `BIS.read1()`) or when `BufferedInputStream` is cascaded.

This pull request has now been integrated.

Changeset: e52a2aee
Author:    Sergey Tsypanov <stsypanov at openjdk.org>
Committer: Jaikiran Pai <jpai at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e52a2aeeacaeb26c801b6e31f8e67e61b1ea2de3
Stats:     47 lines in 1 file changed: 36 ins; 2 del; 9 mod

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

Reviewed-by: liach, bpb, jpai

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

PR: https://git.openjdk.org/jdk/pull/13150


More information about the core-libs-dev mailing list