< prev index next > test/hotspot/jtreg/runtime/cds/appcds/aotCode/AOTCodeCompressedOopsTest.java
Print this page
/**
* @test
* @summary Sanity test of AOT Code Cache with compressed oops configurations
* @requires vm.cds.supports.aot.code.caching
! * @requires vm.compMode != "Xcomp"
* @comment The test verifies AOT checks during VM startup and not code generation.
* No need to run it with -Xcomp. It takes a lot of time to complete all
* subtests with this flag.
* @library /test/lib /test/setup_aot
* @build AOTCodeCompressedOopsTest JavacBenchApp
/**
* @test
* @summary Sanity test of AOT Code Cache with compressed oops configurations
* @requires vm.cds.supports.aot.code.caching
! * @requires vm.compMode != "Xcomp" & vm.compMode != "Xint"
* @comment The test verifies AOT checks during VM startup and not code generation.
* No need to run it with -Xcomp. It takes a lot of time to complete all
* subtests with this flag.
* @library /test/lib /test/setup_aot
* @build AOTCodeCompressedOopsTest JavacBenchApp
if (line.indexOf("CDS archive was created with max heap size") != -1) {
// Parse AOT Cache CompressedOops settings
line = list.get(i+2);
Matcher m = p.matcher(line);
if (!m.find()) {
! throw new RuntimeException("Pattern \"" + p + "\" not found in the output");
}
aotCacheBase = Long.valueOf(m.group(1), 16);
aotCacheShift = Integer.valueOf(m.group(2));
// Parse current CompressedOops settings
line = list.get(i+5);
m = p.matcher(line);
if (!m.find()) {
! throw new RuntimeException("Pattern \"" + p + "\" not found in the output");
}
currentBase = Long.valueOf(m.group(1), 16);
currentShift = Integer.valueOf(m.group(2));
break;
}
if (line.indexOf("CDS archive was created with max heap size") != -1) {
// Parse AOT Cache CompressedOops settings
line = list.get(i+2);
Matcher m = p.matcher(line);
if (!m.find()) {
! throw new RuntimeException("Pattern \"" + p + "\" not found in the output. Got \"" + line + "\"");
}
aotCacheBase = Long.valueOf(m.group(1), 16);
aotCacheShift = Integer.valueOf(m.group(2));
// Parse current CompressedOops settings
line = list.get(i+5);
m = p.matcher(line);
if (!m.find()) {
! throw new RuntimeException("Pattern \"" + p + "\" not found in the output. Got \"" + line + "\"");
}
currentBase = Long.valueOf(m.group(1), 16);
currentShift = Integer.valueOf(m.group(2));
break;
}
< prev index next >