RFR: 8284638: store skip buffers in InputStream Object [v9]
liach
duke at openjdk.java.net
Wed Apr 20 16:39:30 UTC 2022
On Wed, 20 Apr 2022 16:30:19 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 uselsee MIN_SKIP_BUFFER_SIZE
src/java.base/share/classes/java/io/InputStream.java line 62:
> 60:
> 61: private byte[] skipBufferReference(long remaining) {
> 62: int size = (int) Math.min(MAX_SKIP_BUFFER_SIZE, remaining);
This is now redundant. Can change parameter to (int size) directly
-------------
PR: https://git.openjdk.java.net/jdk/pull/5872
More information about the core-libs-dev
mailing list