提交 0124bd18 编写于 作者: T tschatzl

8048088: Conservative maximum heap alignment should take vm_allocation_granularity into account

Summary: Also consider os::vm_allocation_granularity in the calculation.
Reviewed-by: brutisso
上级 73206bcf
...@@ -1505,7 +1505,9 @@ void Arguments::set_conservative_max_heap_alignment() { ...@@ -1505,7 +1505,9 @@ void Arguments::set_conservative_max_heap_alignment() {
heap_alignment = G1CollectedHeap::conservative_max_heap_alignment(); heap_alignment = G1CollectedHeap::conservative_max_heap_alignment();
} }
#endif // INCLUDE_ALL_GCS #endif // INCLUDE_ALL_GCS
_conservative_max_heap_alignment = MAX3(heap_alignment, os::max_page_size(), _conservative_max_heap_alignment = MAX4(heap_alignment,
(size_t)os::vm_allocation_granularity(),
os::max_page_size(),
CollectorPolicy::compute_heap_alignment()); CollectorPolicy::compute_heap_alignment());
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册