Support large CDS archives with UseCompactObjectHeaders

XMLWordPrintable

    • 25

      During the effort to extent archive size beyond 2GB, with offset shift (see JDK-8376125), there was a report from [~abakhtin]:
      ---------
      I've tried the suggested code with an archive size more than 4Gb, but it fails with an assertion:
      # Internal Error (aotMetaspace.cpp:1955), pid=96332, tid=4099
      # guarantee(archive_space_size < max_encoding_range_size - class_space_alignment) failed: Archive too large

      CDC archive was created successfully:

      [187.068s][info ][cds ] Shared file region (rw) 0: 822453584 bytes, addr 0x0000000800004000 file offset 0x00004000 crc 0x132b652e
      [189.176s][info ][cds ] Shared file region (ro) 1: 3576115584 bytes, addr 0x0000000831060000 file offset 0x31060000 crc 0x71b020a2
      [197.653s][info ][cds ] Shared file region (ac) 4: 0 bytes
      [198.870s][info ][cds ] Shared file region (bm) 2: 56555664 bytes, addr 0x0000000000000000 file offset 0x1062d4000 crc 0xbd87f804
      [199.504s][info ][cds ] Shared file region (hp) 3: 16091256 bytes, addr 0x00000000ff000000 file offset 0x1098c4000 crc 0x7834b7c3
      [199.684s][debug ][cds ] bm space: 56555664 [ 1.3% of total] out of 56555664 bytes [100.0% used]
      [199.684s][debug ][cds ] hp space: 16091256 [ 0.4% of total] out of 16091256 bytes [100.0% used] at 0x0000000c6d000000
      [199.684s][debug ][cds ] total : 4471216088 [100.0% of total] out of 4471228536 bytes [100.0% used]

            Assignee:
            Xuelei Fan
            Reporter:
            Xuelei Fan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: