1421 warning("UseCompressedKlassPointers requires UseCompressedOops"); |
1421 warning("UseCompressedKlassPointers requires UseCompressedOops"); |
1422 } |
1422 } |
1423 FLAG_SET_DEFAULT(UseCompressedKlassPointers, false); |
1423 FLAG_SET_DEFAULT(UseCompressedKlassPointers, false); |
1424 } else { |
1424 } else { |
1425 // Turn on UseCompressedKlassPointers too |
1425 // Turn on UseCompressedKlassPointers too |
1426 // The compiler is broken for this so turn it on when the compiler is fixed. |
1426 if (FLAG_IS_DEFAULT(UseCompressedKlassPointers)) { |
1427 // if (FLAG_IS_DEFAULT(UseCompressedKlassPointers)) { |
1427 FLAG_SET_ERGO(bool, UseCompressedKlassPointers, true); |
1428 // FLAG_SET_ERGO(bool, UseCompressedKlassPointers, true); |
1428 } |
1429 // } |
|
1430 // Set the ClassMetaspaceSize to something that will not need to be |
1429 // Set the ClassMetaspaceSize to something that will not need to be |
1431 // expanded, since it cannot be expanded. |
1430 // expanded, since it cannot be expanded. |
1432 if (UseCompressedKlassPointers && FLAG_IS_DEFAULT(ClassMetaspaceSize)) { |
1431 if (UseCompressedKlassPointers && FLAG_IS_DEFAULT(ClassMetaspaceSize)) { |
1433 // 100,000 classes seems like a good size, so 100M assumes around 1K |
1432 // 100,000 classes seems like a good size, so 100M assumes around 1K |
1434 // per klass. The vtable and oopMap is embedded so we don't have a fixed |
1433 // per klass. The vtable and oopMap is embedded so we don't have a fixed |