JDK-8212995 : Place the Integer.IntegerCache and cached Integer objects in the closed archive heap region
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-10-25
  • Updated: 2019-06-23
  • Resolved: 2018-11-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12
12 b19Fixed
Related Reports
Relates :  
Description
The Integer.IntegerCache and cached Integer objects are archived in the open archive heap region at CDS dump time (JDK-8209120). The Integer objects and the cache are good candidates for moving to the closed archived heap region for sharing. That was also suggested by Claes when he made the change for archiving the Integer.IntegerCache.

java.lang.Integer
- klass: 'java/lang/Integer'
- ---- fields (total size 2 words):
- private final 'value' 'I' @12  -128 (ffffff80)

Comments
As part of the change, the 'st' space will be renamed to 'ca' space. The code is reorganized to allow more shareable subgraphs being archived in the closed archive heap region in the future.
30-10-2018

With the IntegerCache and cached Integer objects being moved to the closed archive heap region, 4K java heap data can be shareable: Before: mc space: 8416 [ 0.0% of total] out of 12288 bytes [ 68.5% used] at 0x0000000800000000 rw space: 3946640 [ 21.4% of total] out of 3948544 bytes [100.0% used] at 0x0000000800003000 ro space: 7319328 [ 39.6% of total] out of 7319552 bytes [100.0% used] at 0x00000008003c7000 md space: 2416 [ 0.0% of total] out of 4096 bytes [ 59.0% used] at 0x0000000800ac2000 od space: 6475944 [ 35.0% of total] out of 6479872 bytes [ 99.9% used] at 0x0000000800ac3000 st0 space: 438272 [ 2.4% of total] out of 438272 bytes [100.0% used] at 0x00000007ffc00000 oa0 space: 282624 [ 1.5% of total] out of 282624 bytes [100.0% used] at 0x00000007ff800000 total : 18473640 [100.0% of total] out of 18485248 bytes [ 99.9% used] After: mc space: 8416 [ 0.0% of total] out of 12288 bytes [ 68.5% used] at 0x0000000800000000 rw space: 3946640 [ 21.4% of total] out of 3948544 bytes [100.0% used] at 0x0000000800003000 ro space: 7319328 [ 39.6% of total] out of 7319552 bytes [100.0% used] at 0x00000008003c7000 md space: 2416 [ 0.0% of total] out of 4096 bytes [ 59.0% used] at 0x0000000800ac2000 od space: 6475944 [ 35.0% of total] out of 6479872 bytes [ 99.9% used] at 0x0000000800ac3000 st0 space: 442368 [ 2.4% of total] out of 442368 bytes [100.0% used] at 0x00000007ffc00000 oa0 space: 278528 [ 1.5% of total] out of 278528 bytes [100.0% used] at 0x00000007ff800000 total : 18473640 [100.0% of total] out of 18485248 bytes [ 99.9% used]
29-10-2018