mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8253500: [REDO] JDK-8253208 Move CDS related code to a separate class
Reviewed-by: mchung, iklam
This commit is contained in:
parent
bf442c5b9e
commit
89c5e49ba2
22 changed files with 103 additions and 99 deletions
|
@ -34,7 +34,7 @@ import java.util.Objects;
|
|||
import java.util.Optional;
|
||||
|
||||
import jdk.internal.HotSpotIntrinsicCandidate;
|
||||
import jdk.internal.misc.VM;
|
||||
import jdk.internal.misc.CDS;
|
||||
|
||||
import static java.lang.String.COMPACT_STRINGS;
|
||||
import static java.lang.String.LATIN1;
|
||||
|
@ -1169,7 +1169,7 @@ public final class Long extends Number
|
|||
int size = -(-128) + 127 + 1;
|
||||
|
||||
// Load and use the archived cache if it exists
|
||||
VM.initializeFromArchive(LongCache.class);
|
||||
CDS.initializeFromArchive(LongCache.class);
|
||||
if (archivedCache == null || archivedCache.length != size) {
|
||||
Long[] c = new Long[size];
|
||||
long value = -128;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue