Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8060130

Simplify the synchronization of defining and getting java.lang.Package

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b39
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  redestad Claes Redestad
                  Reporter:
                  redestad Claes Redestad
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: