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

JFR: Improve check for JDK classes

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: