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

Move ClassLoaderData::_dependencies to ClassLoaderData::_handles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • 11
    • hotspot
    • None
    • b07

      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.

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

              Created:
              Updated:
              Resolved: