RFR: 8300236: Use VarHandle access in Data(Input | Output)Stream classes [v5]
Per Minborg
pminborg at openjdk.org
Tue Jan 24 10:53:08 UTC 2023
On Tue, 24 Jan 2023 10:28:42 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Remove methods with implicit zero offset
>
> src/java.base/share/classes/java/io/DataInputStream.java line 59:
>
>> 57: }
>> 58:
>> 59: private final byte[] readBuffer = new byte[8];
>
> No objection to the readBuffer but it does make it wonder if we should re-visit bytearr and chararr as they are only need for reading modified UTF-8 strings and shouldn't need to be eagerly created.
https://bugs.openjdk.org/browse/JDK-8300979
-------------
PR: https://git.openjdk.org/jdk/pull/12076
More information about the core-libs-dev
mailing list