提交 5cfa13c4 编写于 作者: T tschatzl

8043723: max_heap_for_compressed_oops() declared with size_t, but defined with uintx

Summary: The mismatch in declaration and definition has been encountered when compiling on a platform where the sizes are different. Change the method definition to match the declaration.
Reviewed-by: tschatzl, sjohanss
Contributed-by: NDan Horak <dhorak@redhat.com>
上级 cd03c521
...@@ -1401,7 +1401,7 @@ bool verify_object_alignment() { ...@@ -1401,7 +1401,7 @@ bool verify_object_alignment() {
return true; return true;
} }
uintx Arguments::max_heap_for_compressed_oops() { size_t Arguments::max_heap_for_compressed_oops() {
// Avoid sign flip. // Avoid sign flip.
assert(OopEncodingHeapMax > (uint64_t)os::vm_page_size(), "Unusual page size"); assert(OopEncodingHeapMax > (uint64_t)os::vm_page_size(), "Unusual page size");
// We need to fit both the NULL page and the heap into the memory budget, while // We need to fit both the NULL page and the heap into the memory budget, while
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册