mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8245335: [TESTBUG] DeterministicDump.java fails with release JVM
Reviewed-by: stuefe, dholmes, jiefu
This commit is contained in:
parent
ea38873d30
commit
7d330d34f1
@ -67,16 +67,10 @@ public class DeterministicDump {
|
||||
String baseArchive2 = dump(baseArgs);
|
||||
compare(baseArchive, baseArchive2);
|
||||
|
||||
|
||||
// (2) This will cause GC to happen after we've allocated 1MB of metaspace objects
|
||||
// while processing the built-in SharedClassListFile.
|
||||
String withGCArchive = dump(baseArgs, "-XX:MetaspaceSize=1M");
|
||||
compare(baseArchive, withGCArchive);
|
||||
|
||||
// (3) This will cause archive to be relocated during dump time. We should
|
||||
// still get the same bits. (This simulates relocation that happens when
|
||||
// (2) This will cause the archive to be relocated during dump time. We should
|
||||
// still get the same bits. This simulates relocation that happens when
|
||||
// Address Space Layout Randomization prevents the archive space to
|
||||
// be mapped at the default location)
|
||||
// be mapped at the default location.
|
||||
String relocatedArchive = dump(baseArgs, "-XX:+UnlockDiagnosticVMOptions", "-XX:ArchiveRelocationMode=1");
|
||||
compare(baseArchive, relocatedArchive);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user