JDK-8290253 : gc/g1/TestVerificationInConcurrentCycle.java#id1 fails with "Error. can't find sun.hotspot.WhiteBox in test directory or libraries"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 20
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-07-13
  • Updated: 2022-07-18
  • Resolved: 2022-07-13
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.
JDK 20
20 b06Fixed
Related Reports
Relates :  
Relates :  
Description
The following test failed in the JDK20 CI:

gc/g1/TestVerificationInConcurrentCycle.java#id1

Here's a snippet from the log file:

#section:script_messages
----------messages:(7/717)----------
JDK under test: /opt/mach5/mesos/work_dir/jib-master/install/jdk-20+6-301/linux-aarch64.jdk/jdk-20
java version "20-ea" 2023-03-21
Java(TM) SE Runtime Environment (build 20-ea+6-301)
Java HotSpot(TM) 64-Bit Server VM (build 20-ea+6-301, mixed mode, sharing)
Library /test/lib; kind: packages
   source directory: /opt/mach5/mesos/work_dir/jib-master/install/jdk-20+6-301/src.full/open/test/lib
   class directory: /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S10144/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0224600a-a053-4a3a-860f-9033a276539a/runs/6c977ba8-79a1-4561-816a-385add23acfc/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_gc/classes/1/test/lib

#section:build
----------messages:(2/99)----------
command: build sun.hotspot.WhiteBox
reason: User specified action: run build sun.hotspot.WhiteBox 
result: Not run. Test running...


test result: Error. can't find sun.hotspot.WhiteBox in test directory or libraries
Comments
The fix for this bug is integrated in jdk-20+6-303.
13-07-2022

Reproduced the failure on my MBP13 with 'release' bits and verified that the test passes with the fix in place.
13-07-2022

Changeset: 5e3ecff7 Author: Thomas Schatzl <tschatzl@openjdk.org> Date: 2022-07-13 18:31:03 +0000 URL: https://git.openjdk.org/jdk/commit/5e3ecff7a60708aaf4a3c63f85907e4fb2dcbc9e
13-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/9483 Date: 2022-07-13 18:25:18 +0000
13-07-2022

This is likely the fix: $ diff test/hotspot/jtreg/gc/g1/TestVerificationInConcurrentCycle.java{,.new} 51,52c51,52 < * @build sun.hotspot.WhiteBox < * @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox --- > * @build jdk.test.whitebox.WhiteBox > * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox I building a test repo now...
13-07-2022

This was the bug that removed the HotSpot white box stuff: JDK-8275662: remove test/lib/sun/hotspot
13-07-2022

[~tschatzl] - Please take a look at this new failure. I suspect you have a merge error with [~coleenp]'s removal of the HotSpot white box stuff.
13-07-2022

The failing test, gc/g1/TestVerificationInConcurrentCycle.java, is modified by the following fix in jdk-20+6-301-tier2: JDK-8290023: Remove use of IgnoreUnrecognizedVMOptions in gc tests
13-07-2022