JDK-8060130 : Simplify the synchronization of defining and getting java.lang.Package
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-10-10
  • Updated: 2015-06-04
  • Resolved: 2014-11-05
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 9
9 b39Fixed
Related Reports
Relates :  
Relates :  
Description
Current code in j.l.ClassLoader and j.l.Package for retrieving packages use coarse-grained synchronization on shared collections and could be simplified by using concurrent utilities. 

Furthermore, when defining Packages, the reading of Manifests from jar files is synchronized globally, which prohibits reading of manifests from different jar files in parallel, which could be a startup bottleneck for some applications.