8072434: 8064457: introduces performance regressions in 9-b47
Reviewed-by: coleenp, kvn
This commit is contained in:
parent
483815ed11
commit
3a8d0b8ce0
@ -503,11 +503,12 @@ void ReservedHeapSpace::initialize_compressed_heap(const size_t size, size_t ali
|
|||||||
// But leave room for the compressed class pointers, which is allocated above
|
// But leave room for the compressed class pointers, which is allocated above
|
||||||
// the heap.
|
// the heap.
|
||||||
char *zerobased_max = (char *)OopEncodingHeapMax;
|
char *zerobased_max = (char *)OopEncodingHeapMax;
|
||||||
|
const size_t class_space = align_size_up(CompressedClassSpaceSize, alignment);
|
||||||
// For small heaps, save some space for compressed class pointer
|
// For small heaps, save some space for compressed class pointer
|
||||||
// space so it can be decoded with no base.
|
// space so it can be decoded with no base.
|
||||||
if (UseCompressedClassPointers && !UseSharedSpaces &&
|
if (UseCompressedClassPointers && !UseSharedSpaces &&
|
||||||
OopEncodingHeapMax <= KlassEncodingMetaspaceMax) {
|
OopEncodingHeapMax <= KlassEncodingMetaspaceMax &&
|
||||||
const size_t class_space = align_size_up(CompressedClassSpaceSize, alignment);
|
(uint64_t)(aligned_heap_base_min_address + size + class_space) <= KlassEncodingMetaspaceMax) {
|
||||||
zerobased_max = (char *)OopEncodingHeapMax - class_space;
|
zerobased_max = (char *)OopEncodingHeapMax - class_space;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user