# HG changeset patch # User tschatzl # Date 1405928419 -7200 # Node ID d15367d92f0da8c33a733423e5c35842b8034c4d # Parent f40816c5e359d88422f32f0bed01252b6e1ccd98 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 f40816c5e359 -r d15367d92f0d src/share/vm/runtime/arguments.cpp --- a/src/share/vm/runtime/arguments.cpp Mon Jul 21 09:40:19 2014 +0200 +++ b/src/share/vm/runtime/arguments.cpp Mon Jul 21 09:40:19 2014 +0200 @@ -1401,7 +1401,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