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

@ -403,7 +403,7 @@ PSVirtualSpace*
ParallelCompactData::create_vspace(size_t count, size_t element_size)
{
const size_t raw_bytes = count * element_size;
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));