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

JFR: Replace JVM.getJVM() with JVM

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: