mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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
|
@ -32,7 +32,7 @@
|
|||
|
||||
package sun.util.locale;
|
||||
|
||||
import jdk.internal.misc.VM;
|
||||
import jdk.internal.misc.CDS;
|
||||
import jdk.internal.vm.annotation.Stable;
|
||||
|
||||
import java.lang.ref.SoftReference;
|
||||
|
@ -62,7 +62,7 @@ public final class BaseLocale {
|
|||
ROOT = 18,
|
||||
NUM_CONSTANTS = 19;
|
||||
static {
|
||||
VM.initializeFromArchive(BaseLocale.class);
|
||||
CDS.initializeFromArchive(BaseLocale.class);
|
||||
BaseLocale[] baseLocales = constantBaseLocales;
|
||||
if (baseLocales == null) {
|
||||
baseLocales = new BaseLocale[NUM_CONSTANTS];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue