< prev index next >
src/hotspot/share/gc/cms/parNewGeneration.cpp
Print this page
rev 52325 : 8213113: Dead code related to UseAdaptiveSizePolicy in ParNewGeneration
Summary: Removed dead code related to UseAdaptiveSizePolicy for CMS
@@ -886,14 +886,11 @@
_gc_tracer.report_gc_start(gch->gc_cause(), _gc_timer->gc_start());
gch->trace_heap_before_gc(gc_tracer());
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();
to()->clear(SpaceDecorator::Mangle);
@@ -1015,14 +1012,11 @@
plab_stats()->adjust_desired_plab_sz();
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.
jlong now = os::javaTimeNanos() / NANOSECS_PER_MILLISEC;
@@ -1106,13 +1100,10 @@
oop forward_ptr;
// 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) {
// Either to-space is full or we decided to promote try allocating obj tenured
< prev index next >