JDK-8294068 : Unconditional and eager load of nio library since JDK-8264744
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-09-20
  • Updated: 2025-04-08
  • Resolved: 2022-09-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 20
20 b16Fixed
Related Reports
Relates :  
Description
We noticed a startup and footprint regression on multiple applications starting since 20-b14. Cause appears to be JDK-8264744 which adds a call to load the nio library in the LinuxFileSystem <clinit>. 

I think refactoring the LinuxFileSystem::directCopy0 method (also recently introduced with JDK-8293121?) into LinuxNativeDispatcher would resolve this startup regression
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/10362 Date: 2022-09-20 16:47:09 +0000
08-04-2025

Changeset: e1958971 Author: Brian Burkhalter <bpb@openjdk.org> Date: 2022-09-21 14:51:21 +0000 URL: https://git.openjdk.org/jdk/commit/e1958971c95a651da9e7fca7a98828f7fd0391bb
21-09-2022