< prev index next >
src/hotspot/share/runtime/commandLineFlagConstraintsGC.cpp
Print this page
@@ -21,12 +21,13 @@
* questions.
*
*/
#include "precompiled.hpp"
+#include "gc/shared/cardTableRS.hpp"
#include "gc/shared/collectedHeap.hpp"
-#include "gc/shared/collectorPolicy.hpp"
+#include "gc/shared/gcArguments.hpp"
#include "gc/shared/genCollectedHeap.hpp"
#include "gc/shared/threadLocalAllocBuffer.hpp"
#include "runtime/arguments.hpp"
#include "runtime/commandLineFlagConstraintsGC.hpp"
#include "runtime/commandLineFlagRangeList.hpp"
@@ -640,11 +641,11 @@
if (UseG1GC) {
heap_alignment = HeapRegionBounds::max_size();
} else
#endif
{
- heap_alignment = CollectorPolicy::compute_heap_alignment();
+ heap_alignment = compute_heap_alignment();
}
return MaxSizeForAlignment(name, value, heap_alignment, verbose);
}
@@ -751,16 +752,16 @@
return Flag::SUCCESS;
}
Flag::Error SurvivorRatioConstraintFunc(uintx value, bool verbose) {
if (FLAG_IS_CMDLINE(SurvivorRatio) &&
- (value > (MaxHeapSize / Universe::heap()->collector_policy()->space_alignment()))) {
+ (value > (MaxHeapSize / Universe::heap()->space_alignment()))) {
CommandLineError::print(verbose,
"SurvivorRatio (" UINTX_FORMAT ") must be "
"less than or equal to ergonomic SurvivorRatio maximum (" SIZE_FORMAT ")\n",
value,
- (MaxHeapSize / Universe::heap()->collector_policy()->space_alignment()));
+ (MaxHeapSize / Universe::heap()->space_alignment()));
return Flag::VIOLATES_CONSTRAINT;
} else {
return Flag::SUCCESS;
}
}
< prev index next >