43 // Forcefully exit when OOME is detected. Nothing we can do at that point. |
43 // Forcefully exit when OOME is detected. Nothing we can do at that point. |
44 if (FLAG_IS_DEFAULT(ExitOnOutOfMemoryError)) { |
44 if (FLAG_IS_DEFAULT(ExitOnOutOfMemoryError)) { |
45 FLAG_SET_DEFAULT(ExitOnOutOfMemoryError, true); |
45 FLAG_SET_DEFAULT(ExitOnOutOfMemoryError, true); |
46 } |
46 } |
47 |
47 |
48 #if INCLUDE_EPSILONGC |
|
49 if (EpsilonMaxTLABSize < MinTLABSize) { |
48 if (EpsilonMaxTLABSize < MinTLABSize) { |
50 warning("EpsilonMaxTLABSize < MinTLABSize, adjusting it to " SIZE_FORMAT, MinTLABSize); |
49 warning("EpsilonMaxTLABSize < MinTLABSize, adjusting it to " SIZE_FORMAT, MinTLABSize); |
51 EpsilonMaxTLABSize = MinTLABSize; |
50 EpsilonMaxTLABSize = MinTLABSize; |
52 } |
51 } |
53 |
52 |
54 if (!EpsilonElasticTLAB && EpsilonElasticTLABDecay) { |
53 if (!EpsilonElasticTLAB && EpsilonElasticTLABDecay) { |
55 warning("Disabling EpsilonElasticTLABDecay because EpsilonElasticTLAB is disabled"); |
54 warning("Disabling EpsilonElasticTLABDecay because EpsilonElasticTLAB is disabled"); |
56 FLAG_SET_DEFAULT(EpsilonElasticTLABDecay, false); |
55 FLAG_SET_DEFAULT(EpsilonElasticTLABDecay, false); |
57 } |
56 } |
58 #endif |
|
59 |
57 |
60 #ifdef COMPILER2 |
58 #ifdef COMPILER2 |
61 // Enable loop strip mining: there are still non-GC safepoints, no need to make it worse |
59 // Enable loop strip mining: there are still non-GC safepoints, no need to make it worse |
62 if (FLAG_IS_DEFAULT(UseCountedLoopSafepoints)) { |
60 if (FLAG_IS_DEFAULT(UseCountedLoopSafepoints)) { |
63 FLAG_SET_DEFAULT(UseCountedLoopSafepoints, true); |
61 FLAG_SET_DEFAULT(UseCountedLoopSafepoints, true); |