8213113: Dead code related to UseAdaptiveSizePolicy in ParNewGeneration
Summary: Removed dead code related to UseAdaptiveSizePolicy for CMS
Reviewed-by: pliden, tschatzl
--- a/src/hotspot/share/gc/cms/parNewGeneration.cpp Fri Nov 09 11:36:34 2018 -0800
+++ b/src/hotspot/share/gc/cms/parNewGeneration.cpp Fri Nov 09 12:13:20 2018 -0800
@@ -888,11 +888,6 @@
init_assuming_no_promotion_failure();
- if (UseAdaptiveSizePolicy) {
- set_survivor_overflow(false);
- size_policy->minor_collection_begin();
- }
-
GCTraceTime(Trace, gc, phases) t1("ParNew", NULL, gch->gc_cause());
age_table()->clear();
@@ -1017,11 +1012,6 @@
TASKQUEUE_STATS_ONLY(thread_state_set.print_termination_stats());
TASKQUEUE_STATS_ONLY(thread_state_set.print_taskqueue_stats());
- if (UseAdaptiveSizePolicy) {
- size_policy->minor_collection_end(gch->gc_cause());
- size_policy->avg_survived()->sample(from()->used());
- }
-
// We need to use a monotonically non-decreasing time in ms
// or we will see time-warp warnings and os::javaTimeMillis()
// does not guarantee monotonicity.
@@ -1108,9 +1098,6 @@
// Try allocating obj in to-space (unless too old)
if (dummyOld.age() < tenuring_threshold()) {
new_obj = (oop)par_scan_state->alloc_in_to_space(sz);
- if (new_obj == NULL) {
- set_survivor_overflow(true);
- }
}
if (new_obj == NULL) {
--- a/src/hotspot/share/gc/cms/parNewGeneration.hpp Fri Nov 09 11:36:34 2018 -0800
+++ b/src/hotspot/share/gc/cms/parNewGeneration.hpp Fri Nov 09 12:13:20 2018 -0800
@@ -346,11 +346,6 @@
protected:
- bool _survivor_overflow;
-
- bool survivor_overflow() { return _survivor_overflow; }
- void set_survivor_overflow(bool v) { _survivor_overflow = v; }
-
void restore_preserved_marks();
public: