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

Move ClassLoaderData::_dependencies to ClassLoaderData::_handles

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b07

      Description

      Rather than creating an java.lang.Object[2] where [1] is the dependency and [2] is the next field for class loader to class loader dependencies, add the dependency to the _handles area. This saves at least an ObjArray[2] per ClassLoaderData. This object also doesn't have a name so in YourKit looks like some anonymous object that may be a leak.

      Most ClassLoaderData don't require any dependencies, and the number of dependencies was further reduced with more checking with bug JDK-8190359

      We created these dependencies as an objarray early on in JDK8 before the _handles array was created and has been somewhat buggy.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              coleenp Coleen Phillimore
              Reporter:
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: