mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8212995: Placing the Integer.IntegerCache and cached Integer objects in the closed archive heap region
Support shareable archive object subgraphs in closed archive heap regions. Reviewed-by: iklam, ccheung
This commit is contained in:
parent
e3a2417b63
commit
80ad2c7e71
9 changed files with 284 additions and 174 deletions
|
@ -992,6 +992,12 @@ public final class Integer extends Number implements Comparable<Integer> {
|
|||
* During VM initialization, java.lang.Integer.IntegerCache.high property
|
||||
* may be set and saved in the private system properties in the
|
||||
* jdk.internal.misc.VM class.
|
||||
*
|
||||
* WARNING: The cache is archived with CDS and reloaded from the shared
|
||||
* archive at runtime. The archived cache (Integer[]) and Integer objects
|
||||
* reside in the closed archive heap regions. Care should be taken when
|
||||
* changing the implementation and the cache array should not be assigned
|
||||
* with new Integer object(s) after initialization.
|
||||
*/
|
||||
|
||||
private static class IntegerCache {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue