Currently the CDS tests are filtered out in an ad-hoc fashion. E.g., in test/hotspot/jtreg/runtime/appcds/HelloTest.java
* @summary Hello World test for AppCDS
* AppCDS does not support uncompressed oops
* @requires (vm.opt.UseCompressedOops == null) | (vm.opt.UseCompressedOops == true)
The tests related to archived heap objects are more confusing:
* Feature support: G1GC only, compressed oops/kptrs, 64-bit os, not on windows
* @requires (sun.arch.data.model != "32") & (os.family != "windows")
* @requires (vm.opt.UseCompressedOops == null) | (vm.opt.UseCompressedOops == true)
* @requires vm.gc.G1
This should be changed to high-level properties to something like:
@require vm.cds
@require vm.cds.appcds
@require vm.cds.archived.objects
(names are TBD)