Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
8242267: Shenandoah: regions space needs to be aligned by os::vm_allo…
Browse files Browse the repository at this point in the history
…cation_granularity()

Reviewed-by: rkennke, stuefe
  • Loading branch information
shipilev committed Apr 7, 2020
1 parent 9743ec8 commit 9ba424e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp
Expand Up @@ -283,6 +283,7 @@ jint ShenandoahHeap::initialize() {
//
size_t region_align = align_up(sizeof(ShenandoahHeapRegion), SHENANDOAH_CACHE_LINE_SIZE);
size_t region_storage_size = align_up(region_align * _num_regions, region_page_size);
region_storage_size = align_up(region_storage_size, os::vm_allocation_granularity());

ReservedSpace region_storage(region_storage_size, region_page_size);
MemTracker::record_virtual_memory_type(region_storage.base(), mtGC);
Expand Down

0 comments on commit 9ba424e

Please sign in to comment.