JDK-8241075 : appcds/customLoader/HelloCustom_JFR.java failed due to "should have been unloaded"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 15,19,20,22
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: linux,os_x
  • CPU: x86_64
  • Submitted: 2020-03-16
  • Updated: 2023-08-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Sub Tasks
JDK-8314533 :  
JDK-8314672 :  
Description
The following test failed in the JDK15 CI:

runtime/cds/appcds/customLoader/HelloCustom_JFR.java

Here's a snippet from the log file:

Command line: [/scratch/mesos/jib-master/install/jdk-15+15-591/macosx-x64-debug.jdk/jdk-15/fastdebug/bin/java -cp /scratch/mesos/slaves/b0d836b1-c68c-4dbd-8b78-5085890ddd4c-S924/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0c107d64-3ef6-4ef2-bd92-6d7187ebd80f/runs/e3a288f4-55a1-4b84-a7a7-2e8bbc039b10/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/classes/3/runtime/cds/appcds/customLoader/HelloCustom_JFR.d:/scratch/mesos/jib-master/install/jdk-15+15-591/src.full/open/test/hotspot/jtreg/runtime/cds/appcds/customLoader:/scratch/mesos/slaves/b0d836b1-c68c-4dbd-8b78-5085890ddd4c-S924/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0c107d64-3ef6-4ef2-bd92-6d7187ebd80f/runs/e3a288f4-55a1-4b84-a7a7-2e8bbc039b10/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/classes/3/test/lib:/scratch/mesos/slaves/b0d836b1-c68c-4dbd-8b78-5085890ddd4c-S924/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0c107d64-3ef6-4ef2-bd92-6d7187ebd80f/runs/e3a288f4-55a1-4b84-a7a7-2e8bbc039b10/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/classes/3/test/hotspot/jtreg/runtime/cds/appcds:/scratch/mesos/slaves/b0d836b1-c68c-4dbd-8b78-5085890ddd4c-S924/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0c107d64-3ef6-4ef2-bd92-6d7187ebd80f/runs/e3a288f4-55a1-4b84-a7a7-2e8bbc039b10/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/classes/3/runtime/testlibrary:/scratch/mesos/jib-master/install/jtreg/5.0/b01/bundles/jtreg_bin-5.0.zip/jtreg/lib/javatest.jar:/scratch/mesos/jib-master/install/jtreg/5.0/b01/bundles/jtreg_bin-5.0.zip/jtreg/lib/jtreg.jar -XX:MaxRAMPercentage=5 -XX:+CreateCoredumpOnCrash -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -Xshare:on -showversion -XX:SharedArchiveFile=/scratch/mesos/slaves/b0d836b1-c68c-4dbd-8b78-5085890ddd4c-S924/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0c107d64-3ef6-4ef2-bd92-6d7187ebd80f/runs/e3a288f4-55a1-4b84-a7a7-2e8bbc039b10/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/0/appcds-11h26m07s399.jsa -Dtest.timeout.factor=10.0 -cp /scratch/mesos/slaves/b0d836b1-c68c-4dbd-8b78-5085890ddd4c-S924/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0c107d64-3ef6-4ef2-bd92-6d7187ebd80f/runs/e3a288f4-55a1-4b84-a7a7-2e8bbc039b10/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/0/hello.jar -XX:StartFlightRecording=dumponexit=true -Xlog:cds+jvmti=debug -Xbootclasspath/a:/scratch/mesos/slaves/b0d836b1-c68c-4dbd-8b78-5085890ddd4c-S924/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0c107d64-3ef6-4ef2-bd92-6d7187ebd80f/runs/e3a288f4-55a1-4b84-a7a7-2e8bbc039b10/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/0/WhiteBox.jar -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI HelloUnload /scratch/mesos/slaves/b0d836b1-c68c-4dbd-8b78-5085890ddd4c-S924/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0c107d64-3ef6-4ef2-bd92-6d7187ebd80f/runs/e3a288f4-55a1-4b84-a7a7-2e8bbc039b10/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/0/hello_custom.jar true true ]
[2020-03-16T11:26:09.925235Z] Gathering output for process 73534
[ELAPSED: 4588 ms]
[logging stdout to HelloCustom_JFR-0001-exec.stdout]
[logging stderr to HelloCustom_JFR-0001-exec.stderr]
[STDERR]
java version "15-ea" 2020-09-15
Java(TM) SE Runtime Environment (fastdebug build 15-ea+15-591)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 15-ea+15-591, mixed mode, sharing)
Exception in thread "main" ClassUnloadCommon$TestFailure: Test failed: should have been unloaded
	at ClassUnloadCommon.failIf(ClassUnloadCommon.java:50)
	at HelloUnload.main(HelloUnload.java:95)

[2020-03-16T11:26:14.510808Z] Waiting for completion for process 73534
[2020-03-16T11:26:14.511159Z] Waiting for completion finished for process 73534
[2020-03-16T11:26:14.511290Z] Waiting for completion for process 73534
[2020-03-16T11:26:14.511365Z] Waiting for completion finished for process 73534
[2020-03-16T11:26:14.532381Z] Waiting for completion for process 73534
[2020-03-16T11:26:14.532535Z] Waiting for completion finished for process 73534
----------System.err:(170/28864)----------
Comments
Here's the log from my jdk-22+12 stress run sighting on macos-aarch64: $ unzip -l jdk-22+12_macosx-aarch64.8241075.zip Archive: jdk-22+12_macosx-aarch64.8241075.zip Length Date Time Name --------- ---------- ----- ---- 89462 08-27-2023 12:26 jdk-22+12_3/failures.macosx-aarch64/HelloCustom_JFR.jtr.fastdebug --------- ------- 89462 1 file
28-08-2023

And now we get a failure with default GC (which is G1)... sigh... This test is getting frustrating...
18-08-2023

Sigh... I just ProblemList this test with singlegen ZGC and now we get a Generational ZGC failure... Let's see how frequent that configuration is... The first of the recent flood of ZGC failures was on jdk-22+11-787-tier3, but I'm not seeing anything in that build-ID or in the previous handful of build-IDs that stands out as a possible cause for the increased frequency...
17-08-2023

Here's a log file snippet from the jdk-20+10-556-tier6 sighting: runtime/cds/appcds/customLoader/HelloCustom_JFR.java [2022-08-09T05:49:06.639311Z] Waiting for completion for process 25473 [2022-08-09T05:49:06.639479Z] Waiting for completion finished for process 25473 Command line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-20+10-556/macosx-aarch64-debug.jdk/jdk-20/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S58365/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae0d32f0-1cf9-4450-aeae-858ebea53dc2/runs/fcab4a2c-8917-422d-8f14-cb29de42ecfe/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/classes/3/runtime/cds/appcds/customLoader/HelloCustom_JFR.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-20+10-556/src.full/open/test/hotspot/jtreg/runtime/cds/appcds/customLoader:/System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S58365/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae0d32f0-1cf9-4450-aeae-858ebea53dc2/runs/fcab4a2c-8917-422d-8f14-cb29de42ecfe/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/classes/3/test/lib:/System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S58365/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae0d32f0-1cf9-4450-aeae-858ebea53dc2/runs/fcab4a2c-8917-422d-8f14-cb29de42ecfe/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/classes/3/test/hotspot/jtreg/runtime/cds/appcds:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar -XX:MaxRAMPercentage=6.25 -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S58365/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae0d32f0-1cf9-4450-aeae-858ebea53dc2/runs/fcab4a2c-8917-422d-8f14-cb29de42ecfe/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/tmp -XX:+CreateCoredumpOnCrash -XX:+UseZGC -Xshare:on -showversion -XX:SharedArchiveFile=/System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S58365/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae0d32f0-1cf9-4450-aeae-858ebea53dc2/runs/fcab4a2c-8917-422d-8f14-cb29de42ecfe/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/appcds-05h49m05s753.jsa -Dtest.timeout.factor=10.0 -cp /System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S58365/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae0d32f0-1cf9-4450-aeae-858ebea53dc2/runs/fcab4a2c-8917-422d-8f14-cb29de42ecfe/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/hello.jar -XX:+UnlockDiagnosticVMOptions -XX:VerifyArchivedFields=1 -XX:StartFlightRecording:dumponexit=true -Xlog:cds+jvmti=debug -Xbootclasspath/a:/System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S58365/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae0d32f0-1cf9-4450-aeae-858ebea53dc2/runs/fcab4a2c-8917-422d-8f14-cb29de42ecfe/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/WhiteBox.jar -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI HelloUnload /System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S58365/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae0d32f0-1cf9-4450-aeae-858ebea53dc2/runs/fcab4a2c-8917-422d-8f14-cb29de42ecfe/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/hello_custom.jar true true ] [2022-08-09T05:49:06.642108Z] Gathering output for process 25477 [ELAPSED: 1466 ms] [logging stdout to /System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S58365/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae0d32f0-1cf9-4450-aeae-858ebea53dc2/runs/fcab4a2c-8917-422d-8f14-cb29de42ecfe/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/runtime.cds.appcds.customLoader.HelloCustom_JFR.java-0001-exec.stdout] [logging stderr to /System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S58365/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae0d32f0-1cf9-4450-aeae-858ebea53dc2/runs/fcab4a2c-8917-422d-8f14-cb29de42ecfe/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/runtime.cds.appcds.customLoader.HelloCustom_JFR.java-0001-exec.stderr] [STDERR] java version "20-ea" 2023-03-21 Java(TM) SE Runtime Environment (fastdebug build 20-ea+10-556) Java HotSpot(TM) 64-Bit Server VM (fastdebug build 20-ea+10-556, mixed mode, sharing) Exception in thread "main" jdk.test.lib.classloader.ClassUnloadCommon$TestFailure: Test failed: should have been unloaded at jdk.test.lib.classloader.ClassUnloadCommon.failIf(ClassUnloadCommon.java:51) at HelloUnload.main(HelloUnload.java:105) [2022-08-09T05:49:08.105843Z] Waiting for completion for process 25477 [2022-08-09T05:49:08.106010Z] Waiting for completion finished for process 25477 [2022-08-09T05:49:08.106043Z] Waiting for completion for process 25477 [2022-08-09T05:49:08.106063Z] Waiting for completion finished for process 25477 [2022-08-09T05:49:08.113357Z] Waiting for completion for process 25477 [2022-08-09T05:49:08.113402Z] Waiting for completion finished for process 25477 [2022-08-09T05:49:08.118492Z] Waiting for completion for process 25477 [2022-08-09T05:49:08.118556Z] Waiting for completion finished for process 25477 ----------System.err:(32/2263)---------- stdout: [[1.150s][info][jfr,startup] Started recording 1. No limit specified, using maxsize=250MB as default. [1.150s][info][jfr,startup] [1.150s][info][jfr,startup] Use jcmd 25477 JFR.dump name=1 filename=FILEPATH to copy recording data to file. /System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S58365/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae0d32f0-1cf9-4450-aeae-858ebea53dc2/runs/fcab4a2c-8917-422d-8f14-cb29de42ecfe/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/hello_custom.jar file:/System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S58365/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ae0d32f0-1cf9-4450-aeae-858ebea53dc2/runs/fcab4a2c-8917-422d-8f14-cb29de42ecfe/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/hello_custom.jar class CustomLoadee java.net.URLClassLoader@7ff95560 Is CustomLoadee alive? true ]; stderr: [java version "20-ea" 2023-03-21 Java(TM) SE Runtime Environment (fastdebug build 20-ea+10-556) Java HotSpot(TM) 64-Bit Server VM (fastdebug build 20-ea+10-556, mixed mode, sharing) Exception in thread "main" jdk.test.lib.classloader.ClassUnloadCommon$TestFailure: Test failed: should have been unloaded at jdk.test.lib.classloader.ClassUnloadCommon.failIf(ClassUnloadCommon.java:51) at HelloUnload.main(HelloUnload.java:105) ] exitValue = 1 java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1] at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:490) at jdk.test.lib.cds.CDSTestUtils.checkExec(CDSTestUtils.java:471) at jdk.test.lib.cds.CDSTestUtils.checkExec(CDSTestUtils.java:460) at HelloCustom.run(HelloCustom.java:81) at HelloCustom_JFR.main(HelloCustom_JFR.java:50) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312) at java.base/java.lang.Thread.run(Thread.java:1589) JavaTest Message: Test threw exception: java.lang.RuntimeException JavaTest Message: shutting down test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
09-08-2022

Here's a log file snippet from the jdk-19+15-903-tier6 sighting: runtime/cds/appcds/customLoader/HelloCustom_JFR.java [1.501s][debug][cds,jvmti ] classfile data for java/io/FilePermissionCollection [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 4413 bytes [1.501s][debug][cds,jvmti ] classfile data for java/util/Vector [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 18140 bytes [1.501s][debug][cds,jvmti ] classfile data for java/io/FilePermissionCollection$1 [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 1444 bytes class CustomLoadee java.net.URLClassLoader@78dd667e Refcount of symbol HelloClassLoader is 65535 Is CustomLoadee alive? true [1.573s][debug][cds,jvmti ] classfile data for java/util/IdentityHashMap$IdentityHashMapIterator [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 2732 bytes [1.573s][debug][cds,jvmti ] classfile data for java/util/IdentityHashMap$KeyIterator [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 958 bytes [1.586s][debug][cds,jvmti ] classfile data for java/io/RandomAccessFile$1 [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 736 bytes [1.603s][debug][cds,jvmti ] classfile data for java/lang/invoke/MethodHandleImpl$CasesHolder [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 634 bytes [1.603s][debug][cds,jvmti ] classfile data for java/lang/invoke/MethodHandleImpl$LoopClauses [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 1703 bytes [1.603s][debug][cds,jvmti ] classfile data for java/lang/invoke/MethodHandleImpl$ArrayAccess [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 3024 bytes [1.603s][debug][cds,jvmti ] classfile data for java/lang/invoke/MethodHandleImpl$2 [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 862 bytes [1.604s][debug][cds,jvmti ] classfile data for java/lang/invoke/MethodHandleImpl$ArrayAccessor [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 8331 bytes [1.604s][debug][cds,jvmti ] classfile data for java/lang/invoke/MethodHandleImpl$ArrayAccessor$1 [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 1061 bytes [1.604s][debug][cds,jvmti ] classfile data for java/lang/ClassValue$ClassValueMap [0: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+15-903/macosx-aarch64-debug.jdk/jdk-19/fastdebug/lib/modules] = 9384 bytes ]; stderr: [java version "19-ea" 2022-09-20 Java(TM) SE Runtime Environment (fastdebug build 19-ea+15-903) Java HotSpot(TM) 64-Bit Server VM (fastdebug build 19-ea+15-903, mixed mode, sharing) Exception in thread "main" jdk.test.lib.classloader.ClassUnloadCommon$TestFailure: Test failed: should have been unloaded at jdk.test.lib.classloader.ClassUnloadCommon.failIf(ClassUnloadCommon.java:50) at HelloUnload.main(HelloUnload.java:109) ] exitValue = 1 java.lang.RuntimeException: Expected to get exit value of [0] at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:489) at jdk.test.lib.cds.CDSTestUtils.checkExec(CDSTestUtils.java:471) at jdk.test.lib.cds.CDSTestUtils.checkExec(CDSTestUtils.java:460) at HelloCustom.run(HelloCustom.java:81) at HelloCustom_JFR.main(HelloCustom_JFR.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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312) at java.base/java.lang.Thread.run(Thread.java:828) JavaTest Message: Test threw exception: java.lang.RuntimeException JavaTest Message: shutting down test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
21-03-2022

Assigned to JFR team for more investigation per Erik's comment above.
08-04-2020

If I put in a sleep during concurrent marking, this fails every time with JFR and never without JFR. Seems like the JFR code is using the class loader that is about to get unloaded, which keeps it alive. This seemingly has nothing to do with ZGC, and is likely a JFR issue.
08-04-2020

This test case assumes that the "CustomLoadee" class must be unloaded at this point http://hg.openjdk.java.net/jdk/jdk/file/743c9071c317/test/hotspot/jtreg/runtime/cds/appcds/customLoader/test-classes/HelloUnload.java#l95 Since this failure happens only intermittently with -XX:+UseZGC, maybe it's because ZGC doesn't unload class as aggressively as the other GCs? (This test was never executed before with XX:+UseZGC. It only started executed recently after JDK-8240563).
18-03-2020

The test with flags -XX:MaxRAMPercentage=5 -XX:+CreateCoredumpOnCrash -XX:+UnlockExperimentalVMOptions -XX:+UseZGC and failed on macos, could not repeat on local using those flags. Tier6 test passed. Local test on mac os using slowdebug passed with the same vmoptions.
18-03-2020

ILW = HLM = P3
17-03-2020

This is related to JDK-8240563 [TESTBUG] WB_IsCDSIncludedInVmBuild should support uncompressed oops/klasses. Before JDK-8240563, this test was not executed because of @require vm.cds, and vm.cds was false when -XX:+UseZGC is specified in test.java.opts. After JDK-8240563, we no longer set vm.cds to false when -XX:+UseZGCs is specified in test.java.opts (in order to increase test coverage for CDS).
16-03-2020