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

JFR: Improve check for JDK classes

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 23
    • None
    • hotspot
    • None
    • jfr
    • b26

    Description

      In various places in the JFR code we check if an event class belongs to the JDK by checking Class::getClassLoader() == null. This works since all JDK events today are in the java.base module, but if we want to support events in other modules, for example, java.net.http, the check needs to be updated.

      This would allow other modules to use mirror events, static commits and avoid unnecessary security checks.

      Attachments

        Issue Links

          Activity

            People

              egahlin Erik Gahlin
              egahlin Erik Gahlin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: