-
Enhancement
-
Resolution: Fixed
-
P4
-
9
-
b05
Currently, ProcessTools imports
java.lang.management.ManagementFactory;
java.lang.management.RuntimeMXBean;
So, all tests using ProcessTools are recognized as depending on the java.management module. And as the result they are considered as not applicable for minimal VM.
In reality, those classes are only used in by the executeTestJvmAllArgs method. I found only two tests which invoke this method:
compiler/jvmci/compilerToVM/DebugOutputTest.java
compiler/compilercontrol/share/scenario/Executor.java
Suggestion:
- update ProcessTools to stop using java.lang.management
- rewrite two compiler tests
- update all tests which don't need java.management
java.lang.management.ManagementFactory;
java.lang.management.RuntimeMXBean;
So, all tests using ProcessTools are recognized as depending on the java.management module. And as the result they are considered as not applicable for minimal VM.
In reality, those classes are only used in by the executeTestJvmAllArgs method. I found only two tests which invoke this method:
compiler/jvmci/compilerToVM/DebugOutputTest.java
compiler/compilercontrol/share/scenario/Executor.java
Suggestion:
- update ProcessTools to stop using java.lang.management
- rewrite two compiler tests
- update all tests which don't need java.management
- blocks
-
JDK-8178416 remove java.management module dependency declaration after JDK-8164944
-
- Open
-