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

ClassLoaderDataGraph::cld_do() should sometimes require CLDG_lock

    Details

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

      Description

      The runtime and JFR code that calls ClassLoaderDataGraph::cld_do() should use the ClassLoaderDataGraphIterator which asserts that the CLDG_lock is taken. The GC code that uses the function should not.

      For runtime calls, it should also skip unloaded classes.

        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: