JDK-8154204 : [TESTBUG] Update DefaultUseWithClient test to handle client-less builds
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-04-13
  • Updated: 2019-06-20
  • Resolved: 2018-04-30
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 11
11 b12Fixed
Related Reports
Relates :  
Description
The hotspot/test/runtime/SharedArchiveFile/DefaultUseWithClient test currently assumes that if the platform is a 32-bit Windows one the -client VM will automatically use CDS. However, this is not true for JDKs built without the client VM. Without the client VM the jvm.cfg will add a helpful alias to make -client run the -server VM instead, and in the server VM CDS is not on by default.

The test needs to be updated to discover the CDS auto use in some other way, probably not based on the platform information alone.
Comments
I agree.
09-02-2018

The test in question was designed for testing only windows 32-bit. Since we no longer support windows 32-bit, I'm proposing just simply remove the test.
09-02-2018

Re-target this to jdk 10 since JDK-8152356 was closed as "won't fix". However, we will re-visit this issue (JDK-8152356) in jdk 10.
19-05-2016

May need to update this test to account for recent changes agreed upon in JDK-8152356. May need to update name to something like CDSDefaultUse, CDSDefaults or similar.
18-04-2016