mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8309170: CDS archive heap is always relocated for larger heap
Reviewed-by: stuefe, iklam
This commit is contained in:
parent
4b8922f576
commit
e970ddbc60
@ -551,7 +551,7 @@ void ReservedHeapSpace::initialize_compressed_heap(const size_t size, size_t ali
|
||||
const size_t class_space = align_up(CompressedClassSpaceSize, alignment);
|
||||
// For small heaps, save some space for compressed class pointer
|
||||
// space so it can be decoded with no base.
|
||||
if (UseCompressedClassPointers && !UseSharedSpaces &&
|
||||
if (UseCompressedClassPointers && !UseSharedSpaces && !DumpSharedSpaces &&
|
||||
OopEncodingHeapMax <= KlassEncodingMetaspaceMax &&
|
||||
(uint64_t)(aligned_heap_base_min_address + size + class_space) <= KlassEncodingMetaspaceMax) {
|
||||
zerobased_max = (char *)OopEncodingHeapMax - class_space;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user