eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.27k stars 721 forks source link

[JDK19] JTReg JVMTI serviceability tests compile failures #16184

Open fengxue-IS opened 1 year ago

fengxue-IS commented 1 year ago

Tests to be triaged/excluded:

serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorEventOnOffTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCParallelTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorArrayAllSampledTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCSerialTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorIllegalArgumentTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorInitialAllocationTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorInterpreterArrayTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorMultiArrayTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorInterpreterObjectTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorNoCapabilityTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorRecursiveTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatArrayCorrectnessTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatIntervalTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatObjectCorrectnessTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatSimpleTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadDisabledTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadOnOffTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorTwoAgentsTest.java
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorVMEventsTest.java#id0
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorVMEventsTest.java#id1

due to

[2022-10-24T07:02:16.800Z] /home/jenkins/workspace/Grinder/aqa-tests/openjdk/openjdk-jdk/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor.java:32: error: cannot find symbol
[2022-10-24T07:02:16.800Z] import com.sun.management.VMOption;
[2022-10-24T07:02:16.800Z]                          ^
[2022-10-24T07:02:16.800Z]   symbol:   class VMOption
[2022-10-24T07:02:16.800Z]   location: package com.sun.management
[2022-10-24T07:02:16.800Z] /home/jenkins/workspace/Grinder/aqa-tests/openjdk/openjdk-jdk/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor.java:253: error: cannot find symbol
[2022-10-24T07:02:16.800Z]       VMOption enableJVMCI = bean.getVMOption("EnableJVMCI");
[2022-10-24T07:02:16.800Z]       ^
[2022-10-24T07:02:16.800Z]   symbol:   class VMOption
[2022-10-24T07:02:16.800Z]   location: class HeapMonitor
[2022-10-24T07:02:16.800Z] /home/jenkins/workspace/Grinder/aqa-tests/openjdk/openjdk-jdk/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor.java:253: error: cannot find symbol
[2022-10-24T07:02:16.800Z]       VMOption enableJVMCI = bean.getVMOption("EnableJVMCI");
[2022-10-24T07:02:16.800Z]                                  ^
[2022-10-24T07:02:16.800Z]   symbol:   method getVMOption(String)
[2022-10-24T07:02:16.800Z]   location: variable bean of type HotSpotDiagnosticMXBean
[2022-10-24T07:02:16.800Z] /home/jenkins/workspace/Grinder/aqa-tests/openjdk/openjdk-jdk/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor.java:254: error: cannot find symbol
[2022-10-24T07:02:16.800Z]       VMOption useJVMCICompiler = bean.getVMOption("UseJVMCICompiler");
[2022-10-24T07:02:16.800Z]       ^
[2022-10-24T07:02:16.800Z]   symbol:   class VMOption
[2022-10-24T07:02:16.800Z]   location: class HeapMonitor
[2022-10-24T07:02:16.800Z] /home/jenkins/workspace/Grinder/aqa-tests/openjdk/openjdk-jdk/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor.java:254: error: cannot find symbol
[2022-10-24T07:02:16.800Z]       VMOption useJVMCICompiler = bean.getVMOption("UseJVMCICompiler");
[2022-10-24T07:02:16.800Z]                                       ^
[2022-10-24T07:02:16.800Z]   symbol:   method getVMOption(String)
[2022-10-24T07:02:16.800Z]   location: variable bean of type HotSpotDiagnosticMXBean
[2022-10-24T07:02:16.800Z] 5 errors
fengxue-IS commented 1 year ago

I will create a PR to exclude these tests

fengxue-IS commented 1 year ago

OpenJ9 currently uses a placeholder for VMOption class, may need to implement this for future (This class have never been needed previously before serviceability test suite is added). Doc: https://docs.oracle.com/en/java/javase/19/docs/api/jdk.management/com/sun/management/VMOption.html