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

JFR: Replace JVM.getJVM() with JVM

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • None
    • hotspot
    • None
    • jfr
    • b05

      Some of the methods in the jdk.jfr.internal.JVM class are static while others are instance methods. I believe all could be static. Benefits are:

      - Consistency
      - No need to cache the JVM object in various places

      I think JVM.getJVM() was copied from Unsafe.getUnsafe(), but there is no reflection check in getJVM(), so the methods might as well be static.

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

              Created:
              Updated:
              Resolved: