-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
None
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
Peter Levart suggests, in his review forJDK-8261407, to patch VM::isModuleSystemInited(), VM::isBooted(), and VM::isShutdown() to be constant foldable by the hotspot compiler.
https://github.com/openjdk/jdk/pull/6889/files#r804436642
It appears a few APIs, including FileSystems.getDefault(), would be thus foldable. A few other users checking for the integer initialization level, such as ClassLoader.getSystemClassLoader(), may be migrated and become foldable as well.
Peter also has a first draft: https://github.com/plevart/jdk/commit/e918ccc52bbc288f6721af5fa66d8f7a8cc880cf
Peter Levart suggests, in his review for
https://github.com/openjdk/jdk/pull/6889/files#r804436642
It appears a few APIs, including FileSystems.getDefault(), would be thus foldable. A few other users checking for the integer initialization level, such as ClassLoader.getSystemClassLoader(), may be migrated and become foldable as well.
Peter also has a first draft: https://github.com/plevart/jdk/commit/e918ccc52bbc288f6721af5fa66d8f7a8cc880cf
- duplicates
-
JDK-8332141 Improve VM.isBooted and VM.isModuleSystemInited
- Closed
- relates to
-
JDK-8183178 Review thread safety of java.lang.reflect.TypeVariable methods
- Closed
-
JDK-8342643 maybe have the JIT recompile after stable variables are set
- Open