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

JFR: Missing value for classLoader field in module events

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Won't Fix
    • Affects Version/s: 11
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      jfr

      Description

      The events ModuleExport and ModuleRequire have fields of type module.which contains a reference to a class loader object. See below:

      <Type name="Module" label="Module">
          <Field type="Symbol" name="name" label="Name" />
          <Field type="Symbol" name="version" label="Version" />
          <Field type="Symbol" name="location" label="Location" />
          <Field type="ClassLoader" name="classLoader" label="Class Loader" />
      </Type>

      When trying to access the classLoader field using the file parser null is sometimes returned instead of a RecordedClassLoader object.

      ILW
      Impact: High, missing data. Possible NPE in code parsing JFR recordings.
      Likelihood: Low, only happens with JFR in certain scenarios.
      Workaround: High, no known workaround besides turning off module events

      HLH -> P2.

      jdk.jfr.event.runtime.TestModuleEvents should be updated so it verifies that the classLoader field for a module is correct in cases where the class loader is not known from other events.

        Attachments

          Activity

            People

            • Assignee:
              egahlin Erik Gahlin
              Reporter:
              egahlin Erik Gahlin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: