JDK-8227587 : Add internal privileged System.loadLibrary
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-07-11
  • Updated: 2019-08-06
  • Resolved: 2019-07-17
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 14
14 b07Fixed
Related Reports
Relates :  
Description
JDK internals wrap System.loadLibrary in a PrivilegedAction in quite a few places, and whether we use a lambda or an anonymous class, we'll be loading or spinning up a new class per call site. 

By implementing a shared secret loadLibrary that wraps in a privileged action if necessary, we avoid loading a handful of one-off classes which will never be unloaded.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/9a97b1393e72 User: redestad Date: 2019-07-17 10:36:29 +0000
17-07-2019