JDK 22 |
---|
22 b05Fixed |
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.
|