mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8295555: Primitive wrapper caches could be @Stable
Reviewed-by: rriggs
This commit is contained in:
parent
5d716121c1
commit
f7de726bd3
5 changed files with 16 additions and 5 deletions
|
@ -27,6 +27,7 @@ package java.lang;
|
|||
|
||||
import jdk.internal.misc.CDS;
|
||||
import jdk.internal.vm.annotation.IntrinsicCandidate;
|
||||
import jdk.internal.vm.annotation.Stable;
|
||||
|
||||
import java.lang.constant.Constable;
|
||||
import java.lang.constant.DynamicConstantDesc;
|
||||
|
@ -8956,9 +8957,10 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
|
|||
this.value = value;
|
||||
}
|
||||
|
||||
private static class CharacterCache {
|
||||
private static final class CharacterCache {
|
||||
private CharacterCache(){}
|
||||
|
||||
@Stable
|
||||
static final Character[] cache;
|
||||
static Character[] archivedCache;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue