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

serviceability_jvmti_j9_0_FAILED serviceability/jvmti/VMObjectAlloc/VMObjectAllocTest.java Exception: Number of allocation != 1 #15994

Open JasonFengJ9 opened 1 year ago

JasonFengJ9 commented 1 year ago

Failure link

From an internal build(rhel9x86-rt2-1):

openjdk version "19" 2022-09-20
IBM Semeru Runtime Open Edition 19+36 (build 19+36)
Eclipse OpenJ9 VM 19+36 (build master-784820387, JRE 19 Linux amd64-64-Bit Compressed References 20220920_45 (JIT enabled, AOT enabled)
OpenJ9   - 784820387
OMR      - 24b511df5
JCL      - 4efd563f9c based on jdk-19+36)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2022-09-25T07:43:03.014Z] variation: Mode150
[2022-09-25T07:43:03.014Z] JVM_OPTIONS:  -XX:+UseCompressedOops 

[2022-09-25T07:48:13.524Z] TEST: serviceability/jvmti/VMObjectAlloc/VMObjectAllocTest.java

[2022-09-25T07:48:13.548Z] STDERR:
[2022-09-25T07:48:13.548Z] java.lang.Exception: Number of allocation != 1
[2022-09-25T07:48:13.548Z]  at VMObjectAllocTest.main(VMObjectAllocTest.java:50)
[2022-09-25T07:48:13.548Z]  at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[2022-09-25T07:48:13.548Z]  at java.base/java.lang.reflect.Method.invoke(Method.java:578)
[2022-09-25T07:48:13.548Z]  at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2022-09-25T07:48:13.548Z]  at java.base/java.lang.Thread.run(Thread.java:1573)
[2022-09-25T07:48:13.548Z] 
[2022-09-25T07:48:13.548Z] JavaTest Message: Test threw exception: java.lang.Exception: Number of allocation != 1

[2022-09-25T07:48:25.964Z] serviceability_jvmti_j9_0_FAILED
tajila commented 1 year ago

@JasonFengJ9 for the serviceability test failures, can you check if they fail pre JDK19?

JasonFengJ9 commented 1 year ago

@tajila This test serviceability/jvmti/VMObjectAlloc/VMObjectAllocTest.java is available since JDK18. Its extension repo hasn't been setup to run serviceability_jvmti_j9 yet, am going to try it maunally.

JasonFengJ9 commented 1 year ago

Test JDK18 0.33 w/ Adoptium testimage

"/Users/ivm/ive/semeru/jdk-18.0.2+9/Contents/Home/bin/java" -version
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 ...
===============================================
serviceability_jvmti_j9_0 Start Time: Wed Oct  5 16:15:25 2022 Epoch Time (ms): 1665000925000
"/Users/ivm/ive/semeru/jdk-18.0.2+9/Contents/Home/bin/java" -Xshareclasses:destroyAll; "/Users/ivm/ive/semeru/jdk-18.0.2+9/Contents/Home/bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";

Attempting to destroy all caches in cacheDir /Users/jasonfeng/javasharedresources/

JVMSHRC806I Compressed references persistent shared cache "sharedcc_jasonfeng" has been destroyed. Use option -Xnocompressedrefs if you want to destroy a non-compressed references cache.
JVMSHRC005I No shared class caches available
cache cleanup done
variation: Mode150
JVM_OPTIONS:  -XX:+UseCompressedOops 

TEST: serviceability/jvmti/VMObjectAlloc/VMObjectAllocTest.java

STDERR:
java.lang.Exception: Number of allocation != 1
    at VMObjectAllocTest.main(VMObjectAllocTest.java:50)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:577)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
    at java.base/java.lang.Thread.run(Thread.java:858)

JavaTest Message: Test threw exception: java.lang.Exception: Number of allocation != 1
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Exception: Number of allocation != 1

TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: Number of allocation != 1
--------------------------------------------------
Test results: failed: 1
Report written to /Users/ivm/semeru-tests/jdk18-1004/jvmtest/openjdk/report/html/report.html
Results written to /Users/ivm/semeru-tests/jdk18-1004/aqa-tests/TKG/output_16650009243567/serviceability_jvmti_j9_0/work
Error: Some tests failed or other problems occurred.

serviceability_jvmti_j9_0_FAILED

This is not a regression introduced by JDK19.

tajila commented 1 year ago

@JasonFengJ9 Thanks, Can you take a look at the other xerviceability test failures as well. I'd like to separate them from the jdk19 issues

JasonFengJ9 commented 1 year ago

Sure, will look into them.