Open JasonFengJ9 opened 1 year ago
This test looks Hotspot specific. HotSpotDiagnosticMXBean
, VMOption
and other related classes, under com/sun/management, are empty or stubs in the OpenJ9 repo. @LinHu2016 Can you confirm if it is possible to support the above failing test with OpenJ9?
@JasonFengJ9 HeapMonitor.java doesn't look like new for java19, I am wondering how we support it in Java 17.
how we support it in Java 17.
These tests have been enabled recently (few weeks ago) only in Java19's extension repo. They exist in prior extension repos; but they are still disabled. We have not supported HeapMonitor.java in the past.
@babsingh we might can implement some methods of HotSpotDiagnosticMXBean interface, VMOption, but they are Hotspot specific, some features or internal structures, which they expose, are not exist in OpenJ9 jvm(no meaningful too), so there is no guarantee that we can support all of them.
re https://github.com/eclipse-openj9/openj9/issues/15980#issuecomment-1262398750:
I feel the same. I wanted your agreement before proposing to permanently exclude the test. @LinHu2016 Shall we exclude the test?
Yes, exclude it. Adding any compatibility for HotSpotDiagnosticMXBean is a separate decision from supporting Loom. So far we haven't made any commitment to support HotSpotDiagnosticMXBean.
Some tests within test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage
were built manually when developing JEP 331 like JTReg Test Failure - serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorVMEventsTest.java, which now has compilation failure as well.
2022-09-25T00:43:56-0700 Test finished: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorVMEventsTest.java#id0: Failed. Compilation failed: Compilation failed
The test might be modified to add incompatible HotSpotDiagnosticMXBean
APIs.
Agreed on test excluding before a fix is available (or planned).
Test JDK18 0.33 w/ Adoptium testimage
openjdk version "18.0.2" 2022-07-19
IBM Semeru Runtime Open Edition 18.0.2.0 (build 18.0.2+9)
Eclipse OpenJ9 VM 18.0.2.0 (build openj9-0.33.0, JRE 18 Mac OS X amd64-64-Bit Compressed References 20220804_38 (JIT enabled, AOT enabled)
OpenJ9 - 04a55b45b
OMR - b58aa2708
JCL - dff9c97e1c7 based on jdk-18.0.2+9)
===============================================
Running test serviceability_jvmti_j9_0 ...
===============================================
variation: Mode150
JVM_OPTIONS: -XX:+UseCompressedOops
--------------------------------------------------
TEST: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorArrayAllSampledTest.java
TEST JDK: /Users/ivm/ive/semeru/jdk-18.0.2+9/Contents/Home
direct:
/Users/ivm/semeru-tests/jdk18-1009/aqa-tests/openjdk/openjdk-jdk/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor.java:32: error: cannot find symbol
import com.sun.management.VMOption;
^
symbol: class VMOption
location: package com.sun.management
/Users/ivm/semeru-tests/jdk18-1009/aqa-tests/openjdk/openjdk-jdk/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor.java:253: error: cannot find symbol
VMOption enableJVMCI = bean.getVMOption("EnableJVMCI");
^
symbol: class VMOption
location: class HeapMonitor
/Users/ivm/semeru-tests/jdk18-1009/aqa-tests/openjdk/openjdk-jdk/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor.java:253: error: cannot find symbol
VMOption enableJVMCI = bean.getVMOption("EnableJVMCI");
^
symbol: method getVMOption(String)
location: variable bean of type HotSpotDiagnosticMXBean
/Users/ivm/semeru-tests/jdk18-1009/aqa-tests/openjdk/openjdk-jdk/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor.java:254: error: cannot find symbol
VMOption useJVMCICompiler = bean.getVMOption("UseJVMCICompiler");
^
symbol: class VMOption
location: class HeapMonitor
/Users/ivm/semeru-tests/jdk18-1009/aqa-tests/openjdk/openjdk-jdk/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor.java:254: error: cannot find symbol
VMOption useJVMCICompiler = bean.getVMOption("UseJVMCICompiler");
^
symbol: method getVMOption(String)
location: variable bean of type HotSpotDiagnosticMXBean
5 errors
TEST RESULT: Failed. Compilation failed: Compilation failed
serviceability_jvmti_j9_0_FAILED
This is not a regression introduced by JDK19.
Failure link
From an internal build(
rhel9x86-rt2-1
):Rerun in Grinder - Change TARGET to run only the failed test targets.
Optional info
Failure output (captured from console output)