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

Move inner class metaspace cleaning out of safepoint cleanup tasks

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b13

      Description

      The inner class metaspace cleaning was moved out of do_unloading() so that we could support concurrent class unloading. The place chosen for this cleaning was safepoint cleanup tasks, with a couple of flags to enable it only for full GCs.

      Move it instead to ClassLoaderDataGraph::purge, where we know we have full GC, and trigger the cleanup in the ServiceThread if concurrent class unloading. The inner metaspace cleanup still requires a safepoint because it has MetadataOnStackMark and cannot have intervening class redefinition.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: