equal
deleted
inserted
replaced
990 * The cache is initialized on first usage. The size of the cache |
990 * The cache is initialized on first usage. The size of the cache |
991 * may be controlled by the {@code -XX:AutoBoxCacheMax=<size>} option. |
991 * may be controlled by the {@code -XX:AutoBoxCacheMax=<size>} option. |
992 * During VM initialization, java.lang.Integer.IntegerCache.high property |
992 * During VM initialization, java.lang.Integer.IntegerCache.high property |
993 * may be set and saved in the private system properties in the |
993 * may be set and saved in the private system properties in the |
994 * jdk.internal.misc.VM class. |
994 * jdk.internal.misc.VM class. |
|
995 * |
|
996 * WARNING: The cache is archived with CDS and reloaded from the shared |
|
997 * archive at runtime. The archived cache (Integer[]) and Integer objects |
|
998 * reside in the closed archive heap regions. Care should be taken when |
|
999 * changing the implementation and the cache array should not be assigned |
|
1000 * with new Integer object(s) after initialization. |
995 */ |
1001 */ |
996 |
1002 |
997 private static class IntegerCache { |
1003 private static class IntegerCache { |
998 static final int low = -128; |
1004 static final int low = -128; |
999 static final int high; |
1005 static final int high; |