-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
8
-
x86_64
-
generic
ADDITIONAL SYSTEM INFORMATION :
OS: Windows 11 22621.1105
JDK: JDK8u351
A DESCRIPTION OF THE PROBLEM :
I stumbled upon a crash while executing the program. I found JDK8u351 would crash when invoke WhiteBoxAPI `g1StartConcMarkCycle` with vm option ` -XX:+UseParallelGC`. But JDK11.0.17 would throw UnsupportedOperationException: WB_G1StartMarkCycle: G1 GC is not enabled. Is it a bug in JDK8?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run the following command line.
D:\jdk\jdk8u351\bin\javac TestClass.java
D:\jdk\jdk8u351\bin\java -Xbootclasspath/a:wb.jar -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseParallelGC TestClass
ACTUAL -
Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::enqueueMethodForCompilation(Ljava/lang/reflect/Executable;II)Z
Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::isGCSupported(I)Z
Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::isGCSelected(I)Z
Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::isGCSelectedErgonomically()Z
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000056e254bc, pid=27972, tid=0x0000000000005d94
#
# JRE version: Java(TM) SE Runtime Environment (8.0_351-b10) (build 1.8.0_351-b10)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.351-b10 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V [jvm.dll+0x1e54bc]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
Unsupported internal testing APIs have been used.
# An error report file with more information is saved as:
# D:\projects\GCGenerator\JITFuzzing\GCMain\target\classes\hs_err_pid27972.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
---------- BEGIN SOURCE ----------
import sun.hotspot.WhiteBox;
public class TestClass {
public static void main(String[] args) {
WhiteBox wb = WhiteBox.getWhiteBox();
wb.g1StartConcMarkCycle();
}
}
---------- END SOURCE ----------
FREQUENCY : always
OS: Windows 11 22621.1105
JDK: JDK8u351
A DESCRIPTION OF THE PROBLEM :
I stumbled upon a crash while executing the program. I found JDK8u351 would crash when invoke WhiteBoxAPI `g1StartConcMarkCycle` with vm option ` -XX:+UseParallelGC`. But JDK11.0.17 would throw UnsupportedOperationException: WB_G1StartMarkCycle: G1 GC is not enabled. Is it a bug in JDK8?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run the following command line.
D:\jdk\jdk8u351\bin\javac TestClass.java
D:\jdk\jdk8u351\bin\java -Xbootclasspath/a:wb.jar -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseParallelGC TestClass
ACTUAL -
Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::enqueueMethodForCompilation(Ljava/lang/reflect/Executable;II)Z
Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::isGCSupported(I)Z
Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::isGCSelected(I)Z
Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::isGCSelectedErgonomically()Z
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000056e254bc, pid=27972, tid=0x0000000000005d94
#
# JRE version: Java(TM) SE Runtime Environment (8.0_351-b10) (build 1.8.0_351-b10)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.351-b10 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V [jvm.dll+0x1e54bc]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
Unsupported internal testing APIs have been used.
# An error report file with more information is saved as:
# D:\projects\GCGenerator\JITFuzzing\GCMain\target\classes\hs_err_pid27972.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
---------- BEGIN SOURCE ----------
import sun.hotspot.WhiteBox;
public class TestClass {
public static void main(String[] args) {
WhiteBox wb = WhiteBox.getWhiteBox();
wb.g1StartConcMarkCycle();
}
}
---------- END SOURCE ----------
FREQUENCY : always
- duplicates
-
JDK-8167196 WhiteBox methods should throw an exception if used with inappropriate collector.
- Resolved