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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • hotspot
    • b128
    • Verified

      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.

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

              Created:
              Updated:
              Resolved: