Mon, 21 Jul 2014 09:40:19 +0200
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: Dan Horak <dhorak@redhat.com>
src/share/vm/runtime/arguments.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/runtime/arguments.cpp Mon Jul 21 09:40:19 2014 +0200 1.2 +++ b/src/share/vm/runtime/arguments.cpp Mon Jul 21 09:40:19 2014 +0200 1.3 @@ -1401,7 +1401,7 @@ 1.4 return true; 1.5 } 1.6 1.7 -uintx Arguments::max_heap_for_compressed_oops() { 1.8 +size_t Arguments::max_heap_for_compressed_oops() { 1.9 // Avoid sign flip. 1.10 assert(OopEncodingHeapMax > (uint64_t)os::vm_page_size(), "Unusual page size"); 1.11 // We need to fit both the NULL page and the heap into the memory budget, while