RFR: 8284638: store skip buffers in InputStream Object [v8]

liach duke at openjdk.java.net
Wed Apr 20 16:19:37 UTC 2022


On Wed, 20 Apr 2022 16:07:17 GMT, XenoAmess <duke at openjdk.java.net> wrote:

>> @jmehrens what about this then?
>> I think it safe now(actually this mechanism is learned from Reader)
>
> XenoAmess has updated the pull request incrementally with one additional commit since the last revision:
> 
>   remove useless skipBuffer

src/java.base/share/classes/java/io/InputStream.java line 57:

> 55:     private static final int MAX_SKIP_BUFFER_SIZE = 2048;
> 56: 
> 57:     private static final int MIN_SKIP_BUFFER_SIZE = 128;

@jmehrens mentioned that this one can be removed as well since it's not used.

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

PR: https://git.openjdk.java.net/jdk/pull/5872


More information about the core-libs-dev mailing list