RFR: 8300979: Lazily initialize (byte, char)arr in java.io.DataInputStream [v3]
Eirik Bjorsnos
duke at openjdk.org
Thu Mar 23 14:03:25 UTC 2023
On Thu, 23 Mar 2023 13:51:35 GMT, Eirik Bjorsnos <duke at openjdk.org> wrote:
> The reason this puzzles me is that the `readInt` benchmark don't involve the UTF code paths at all. So why would it become slower, just because two fields are no longer initialized with the default arrays?
Could there be some JIT optimizations not being possible because the fields are no longer 'never null'?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13121#issuecomment-1481251028
More information about the core-libs-dev
mailing list