mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8253208: Move CDS related code to a separate class
Reviewed-by: mchung, iklam
This commit is contained in:
parent
24e12b3811
commit
c1df13b855
23 changed files with 165 additions and 99 deletions
|
@ -26,7 +26,7 @@
|
|||
package java.lang;
|
||||
|
||||
import jdk.internal.HotSpotIntrinsicCandidate;
|
||||
import jdk.internal.misc.VM;
|
||||
import jdk.internal.misc.CDS;
|
||||
|
||||
import java.lang.constant.Constable;
|
||||
import java.lang.constant.DynamicConstantDesc;
|
||||
|
@ -108,7 +108,7 @@ public final class Byte extends Number implements Comparable<Byte>, Constable {
|
|||
final int size = -(-128) + 127 + 1;
|
||||
|
||||
// Load and use the archived cache if it exists
|
||||
VM.initializeFromArchive(ByteCache.class);
|
||||
CDS.initializeFromArchive(ByteCache.class);
|
||||
if (archivedCache == null || archivedCache.length != size) {
|
||||
Byte[] c = new Byte[size];
|
||||
byte value = (byte)-128;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue