Skip to content
Permalink
Browse files

8242267: Shenandoah: regions space needs to be aligned by os::vm_allo…

…cation_granularity()

Reviewed-by: rkennke, stuefe
  • Loading branch information
shipilev committed Apr 7, 2020
1 parent 9743ec8 commit 9ba424ee57352585656127f2d83a448e6d0adc56
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp
@@ -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);

0 comments on commit 9ba424e

Please sign in to comment.