The following test failure popped up in my baseline testing
of JDK10 bits for the SMR_prototype:
runtime/CommandLine/VMDeprecatedOptions.java
Here is a snippet of the .jtr file:
----------System.err:(28/1769)----------
stdout: [];
stderr: [Java HotSpot(TM) 64-Bit Server VM warning: Option MaxGCMinorPauseMillis was deprecated in version 8.0 and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: Option MustCallLoadClassInternal was deprecated in version 10.0 and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: Option UnsyncloadClass was deprecated in version 10.0 and will likely be removed in a future release.
Error: VM option 'UnsyncloadClass' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
Error: The unlock option must precede 'UnsyncloadClass'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
]
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:380)
at VMDeprecatedOptions.testDeprecated(VMDeprecatedOptions.java:71)
at VMDeprecatedOptions.main(VMDeprecatedOptions.java:79)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
at java.base/java.lang.Thread.run(Thread.java:844)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
of JDK10 bits for the SMR_prototype:
runtime/CommandLine/VMDeprecatedOptions.java
Here is a snippet of the .jtr file:
----------System.err:(28/1769)----------
stdout: [];
stderr: [Java HotSpot(TM) 64-Bit Server VM warning: Option MaxGCMinorPauseMillis was deprecated in version 8.0 and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: Option MustCallLoadClassInternal was deprecated in version 10.0 and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: Option UnsyncloadClass was deprecated in version 10.0 and will likely be removed in a future release.
Error: VM option 'UnsyncloadClass' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
Error: The unlock option must precede 'UnsyncloadClass'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
]
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:380)
at VMDeprecatedOptions.testDeprecated(VMDeprecatedOptions.java:71)
at VMDeprecatedOptions.main(VMDeprecatedOptions.java:79)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
at java.base/java.lang.Thread.run(Thread.java:844)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
- relates to
-
JDK-8140284 Deprecate -XX:+UnsyncloadClass and -XX:+MustCallLoadClassInternal
-
- Resolved
-