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.
- 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.
- relates to
-
JDK-8344161 Argument type mismatch for jfr_type_id
-
- Resolved
-