src/share/vm/runtime/arguments.cpp

changeset 2150
a8b66e00933b
parent 2138
d5d065957597
child 2151
18c378513575
equal deleted inserted replaced
2149:065dd1ca3ab6 2150:a8b66e00933b
1271 } 1271 }
1272 return true; 1272 return true;
1273 } 1273 }
1274 1274
1275 inline uintx max_heap_for_compressed_oops() { 1275 inline uintx max_heap_for_compressed_oops() {
1276 LP64_ONLY(return OopEncodingHeapMax - MaxPermSize - os::vm_page_size()); 1276 // Heap should be above HeapBaseMinAddress to get zero based compressed oops.
1277 LP64_ONLY(return OopEncodingHeapMax - MaxPermSize - os::vm_page_size() - HeapBaseMinAddress);
1277 NOT_LP64(ShouldNotReachHere(); return 0); 1278 NOT_LP64(ShouldNotReachHere(); return 0);
1278 } 1279 }
1279 1280
1280 bool Arguments::should_auto_select_low_pause_collector() { 1281 bool Arguments::should_auto_select_low_pause_collector() {
1281 if (UseAutoGCSelectPolicy && 1282 if (UseAutoGCSelectPolicy &&

mercurial