8049864: TestParallelHeapSizeFlags fails with unexpected heap size

Reviewed-by: sjohanss, jmasa
This commit is contained in:
Erik Helin 2014-06-24 15:50:50 +02:00
parent 3e005941e7
commit 3eff7a8f64
9 changed files with 89 additions and 40 deletions

View file

@ -41,7 +41,7 @@ ParMarkBitMap::initialize(MemRegion covered_region)
const size_t words = bits / BitsPerWord;
const size_t raw_bytes = words * sizeof(idx_t);
const size_t page_sz = os::page_size_for_region(raw_bytes, raw_bytes, 10);
const size_t page_sz = os::page_size_for_region(raw_bytes, 10);
const size_t granularity = os::vm_allocation_granularity();
_reserved_byte_size = align_size_up(raw_bytes, MAX2(page_sz, granularity));