diff options
| author | Yumin Qi <minqi@openjdk.org> | 2020-09-24 15:28:10 +0000 |
|---|---|---|
| committer | Yumin Qi <minqi@openjdk.org> | 2020-09-24 15:28:10 +0000 |
| commit | 89c5e49ba2fd6ea5ef30b766d1c0af36f72bfef0 (patch) | |
| tree | a04937ca041cfb700daf83897207c1179836dae8 /src/java.base/share/classes/java/util/ImmutableCollections.java | |
| parent | bf442c5b9e1eb013f562dd9495ed18a66b7fb648 (diff) | |
| download | openjdk-89c5e49ba2fd6ea5ef30b766d1c0af36f72bfef0.tar.gz openjdk-89c5e49ba2fd6ea5ef30b766d1c0af36f72bfef0.zip | |
8253500: [REDO] JDK-8253208 Move CDS related code to a separate class
Reviewed-by: mchung, iklam
Diffstat (limited to 'src/java.base/share/classes/java/util/ImmutableCollections.java')
| -rw-r--r-- | src/java.base/share/classes/java/util/ImmutableCollections.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java.base/share/classes/java/util/ImmutableCollections.java b/src/java.base/share/classes/java/util/ImmutableCollections.java index ccf92e2f421..716986b0efd 100644 --- a/src/java.base/share/classes/java/util/ImmutableCollections.java +++ b/src/java.base/share/classes/java/util/ImmutableCollections.java @@ -37,7 +37,7 @@ import java.util.function.Function; import java.util.function.Predicate; import java.util.function.UnaryOperator; import jdk.internal.access.SharedSecrets; -import jdk.internal.misc.VM; +import jdk.internal.misc.CDS; import jdk.internal.vm.annotation.Stable; /** @@ -76,7 +76,7 @@ class ImmutableCollections { // derived from the JVM build/version, so can we generate the exact same // CDS archive for the same JDK build. This makes it possible to verify the // consistency of the JDK build. - long seed = VM.getRandomSeedForCDSDump(); + long seed = CDS.getRandomSeedForDumping(); if (seed == 0) { seed = System.nanoTime(); } @@ -100,7 +100,7 @@ class ImmutableCollections { static final MapN<?,?> EMPTY_MAP; static { - VM.initializeFromArchive(ImmutableCollections.class); + CDS.initializeFromArchive(ImmutableCollections.class); if (archivedObjects == null) { EMPTY = new Object(); EMPTY_LIST = new ListN<>(); |
