1202 if (MaxHeapSize <= max_heap_for_compressed_oops()) { |
1202 if (MaxHeapSize <= max_heap_for_compressed_oops()) { |
1203 if (FLAG_IS_DEFAULT(UseCompressedOops)) { |
1203 if (FLAG_IS_DEFAULT(UseCompressedOops)) { |
1204 // Turn off until bug is fixed. |
1204 // Turn off until bug is fixed. |
1205 // FLAG_SET_ERGO(bool, UseCompressedOops, true); |
1205 // FLAG_SET_ERGO(bool, UseCompressedOops, true); |
1206 } |
1206 } |
|
1207 #ifdef _WIN64 |
|
1208 if (UseLargePages && UseCompressedOops) { |
|
1209 // Cannot allocate guard pages for implicit checks in indexed addressing |
|
1210 // mode, when large pages are specified on windows. |
|
1211 FLAG_SET_DEFAULT(UseImplicitNullCheckForNarrowOop, false); |
|
1212 } |
|
1213 #endif // _WIN64 |
1207 } else { |
1214 } else { |
1208 if (UseCompressedOops && !FLAG_IS_DEFAULT(UseCompressedOops)) { |
1215 if (UseCompressedOops && !FLAG_IS_DEFAULT(UseCompressedOops)) { |
1209 // If specified, give a warning |
1216 // If specified, give a warning |
1210 if (UseConcMarkSweepGC){ |
1217 warning( "Max heap size too large for Compressed Oops"); |
1211 warning("Compressed Oops does not work with CMS"); |
|
1212 } else { |
|
1213 warning( |
|
1214 "Max heap size too large for Compressed Oops"); |
|
1215 } |
|
1216 FLAG_SET_DEFAULT(UseCompressedOops, false); |
1218 FLAG_SET_DEFAULT(UseCompressedOops, false); |
1217 } |
1219 } |
1218 } |
1220 } |
1219 // Also checks that certain machines are slower with compressed oops |
1221 // Also checks that certain machines are slower with compressed oops |
1220 // in vm_version initialization code. |
1222 // in vm_version initialization code. |