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

Walking PackageEntry Export and ModuleEntry Reads Must Occur Only When Neccessary And Wait Until ClassLoader's Aliveness Determined

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b128
    • Verification:
      Verified

      Description

      The walks of a PackageEntry exports and a ModuleEntry reads list at a GC safepoint have the following issues:

      1. The walk occurs at the wrong point in ClassLoaderDataGraph::do_unloading(). The walk should occur after the aliveness of each loader is determined and has been marked.

      2. There is no reason to walk these lists if every module on these lists are defined to one of the 3 builtin loaders that never die or defined to the same loader as the PackageEntry and/or ModuleEntry itself.

        Attachments

          Activity

            People

            • Assignee:
              lfoltan Lois Foltan
              Reporter:
              lfoltan Lois Foltan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: