# HG changeset patch # User tschatzl # Date 1401089503 -7200 # Node ID a7a8e70f1bf70f2294d5928dc5178f86c1c1c54e # Parent 74eb0778e4f2dbff6628e718378449fba27c4265 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 diff -r 74eb0778e4f2 -r a7a8e70f1bf7 hotspot/src/share/vm/runtime/arguments.cpp --- a/hotspot/src/share/vm/runtime/arguments.cpp Wed Jul 05 19:42:32 2017 +0200 +++ b/hotspot/src/share/vm/runtime/arguments.cpp Mon May 26 09:31:43 2014 +0200 @@ -1449,7 +1449,7 @@ return true; } -uintx Arguments::max_heap_for_compressed_oops() { +size_t Arguments::max_heap_for_compressed_oops() { // Avoid sign flip. 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