Observation: The cost of using NIO BasicFileAttributes in ZipFile.Source.Key
Eirik Bjørsnøs
eirbjo at gmail.com
Mon Jan 26 18:14:30 UTC 2026
On Mon, Jan 26, 2026 at 6:07 PM Eirik Bjørsnøs <eirbjo at gmail.com> wrote:
> For reference, "java -cp hello.jar Hello" runs in ~62 ms on the mainline.
> On a branch using a non-NIO "file key" API, it runs in ~58.
> So startup impact is significant.
>
Interestingly, this change also lowered the JDK-internal native memory
usage enough to cause memory allocation in some Unsafe tests to succeed
because they expect OOM.
Filed https://bugs.openjdk.org/browse/JDK-8376398 to investigate these
brittle tests.
Eirik.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20260126/a1c785e6/attachment-0001.htm>
More information about the core-libs-dev
mailing list