comparison src/share/vm/runtime/arguments.cpp @ 642:660978a2a31a

6791178: Specialize for zero as the compressed oop vm heap base Summary: Use zero based compressed oops if java heap is below 32gb and unscaled compressed oops if java heap is below 4gb. Reviewed-by: never, twisti, jcoomes, coleenp
author kvn
date Thu, 12 Mar 2009 10:37:46 -0700
parents dca06e7f503d
children bd441136a5ce
comparison
equal deleted inserted replaced
641:6af0a709d52b 642:660978a2a31a
1209 } 1209 }
1210 #ifdef _WIN64 1210 #ifdef _WIN64
1211 if (UseLargePages && UseCompressedOops) { 1211 if (UseLargePages && UseCompressedOops) {
1212 // Cannot allocate guard pages for implicit checks in indexed addressing 1212 // Cannot allocate guard pages for implicit checks in indexed addressing
1213 // mode, when large pages are specified on windows. 1213 // mode, when large pages are specified on windows.
1214 FLAG_SET_DEFAULT(UseImplicitNullCheckForNarrowOop, false); 1214 // This flag could be switched ON if narrow oop base address is set to 0,
1215 // see code in Universe::initialize_heap().
1216 Universe::set_narrow_oop_use_implicit_null_checks(false);
1215 } 1217 }
1216 #endif // _WIN64 1218 #endif // _WIN64
1217 } else { 1219 } else {
1218 if (UseCompressedOops && !FLAG_IS_DEFAULT(UseCompressedOops)) { 1220 if (UseCompressedOops && !FLAG_IS_DEFAULT(UseCompressedOops)) {
1219 warning("Max heap size too large for Compressed Oops"); 1221 warning("Max heap size too large for Compressed Oops");