JDK-8273522 : Rename test property vm.cds.archived.java.heap to vm.cds.write.archived.java.heap
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-09-09
  • Updated: 2023-09-22
  • Resolved: 2021-09-10
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 17 JDK 18
17.0.10Fixed 18 b15Fixed
Related Reports
Blocks :  
Description
The vm.cds.archived.java.heap test property (see test/jtreg-ext/requires/VMProps.java) is ambiguous -- after JDK-8270489, there are two distinct capabilities:

HeapShared::can_write() -- G1 only
HeapShared::can_read() --  G1, Epsilon

A few CDS tests are marked with

    @requires vm.cds.archived.java.heap

These tests actually require the VM to be able to write Java objects into the CDS archive. Therefore, for clarify, they should be changed to use

    @requires vm.cds.write.archived.java.heap

Comments
Fix request [17u I backport this to simplify backporting later changes that use this property. No risk, only a test change. Resolves were necessary. All occurances of the property covered. Tests pass. SAP nighltly testing passed.
21-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1748 Date: 2023-09-18 07:49:58 +0000
18-09-2023

Changeset: 922e86f4 Author: Ioi Lam <iklam@openjdk.org> Date: 2021-09-10 22:45:26 +0000 URL: https://git.openjdk.java.net/jdk/commit/922e86f4ff28c7b17af8e7b5867a40fc76b7fdd7
10-09-2021

This fix is required for JDK-8273508 - "Support archived heap objects in SerialGC". Without this fix, tests marked with "@require vm.cds.archived.java.heap" would be executed even if SerialGC is selected, but this will dump CDS archives without archived heap objects, causing the tests to fail.
09-09-2021