Integrated: 8272348: Update CDS tests in anticipation of JDK-8270489

Ioi Lam iklam at
Mon Aug 16 03:26:30 UTC 2021

On Wed, 11 Aug 2021 23:42:26 GMT, Ioi Lam <iklam at> wrote:

> For testing (Support archived heap objects in EpsilonGC), some CDS tests should be updated:
> (1) Add `@require vm.gc == null` to mark test cases that will fail if a collector is explicitly specified using `-XX:+UseXXXGC`
> (2) Rename this WhiteBox API to reflect what it checks:
> !WB.areSharedStringsIgnored() -> WB.areSharedStringsMapped()
> With EpsilonGC, the shared strings are not "ignored", but they are also not "mapped" either (they are copied into the Java heap). The existing tests are for mapped strings only, so they should check for `WB.areSharedStringsMapped()`.
> (3) For test cases that check if a heap object is a shared interned string, instead of the generic `WB.isShared(Object o)` API, use a new specific API `WB.isSharedInternedString(String s)`. This API currently works only for "mapped shared strings", but in the future we may enhance it to check for "loaded shared strings" by EpsilonGC.
> (4) Also fix the two test cases that were sensitive to irregular -Xlog output:
> - remove timestamp decorations from the logs
> - handle extra space characters that may appear in the tag decoration between square brackets.

This pull request has now been integrated.

Changeset: 36e2ddad
Author:    Ioi Lam <iklam at>
Stats:     85 lines in 23 files changed: 29 ins; 0 del; 56 mod

8272348: Update CDS tests in anticipation of JDK-8270489

Reviewed-by: ccheung, minqi



More information about the hotspot-runtime-dev mailing list