8253500: [REDO] JDK-8253208 Move CDS related code to a separate class

Reviewed-by: mchung, iklam
This commit is contained in:
Yumin Qi 2020-09-24 15:28:10 +00:00
parent bf442c5b9e
commit 89c5e49ba2
22 changed files with 103 additions and 99 deletions

View file

@ -33,6 +33,7 @@ import java.util.Objects;
import java.util.Optional;
import jdk.internal.HotSpotIntrinsicCandidate;
import jdk.internal.misc.CDS;
import jdk.internal.misc.VM;
import static java.lang.String.COMPACT_STRINGS;
@ -1023,7 +1024,7 @@ public final class Integer extends Number
high = h;
// Load IntegerCache.archivedCache from archive, if possible
VM.initializeFromArchive(IntegerCache.class);
CDS.initializeFromArchive(IntegerCache.class);
int size = (high - low) + 1;
// Use the archived cache if it exists and is large enough