< prev index next >

src/share/vm/gc/g1/g1CollectedHeap.cpp

Print this page
rev 8882 : 8134504: Remove usage of EvacuationInfo from G1CollectorPolicy

*** 4127,4137 **** gclog_or_tty->print_cr("\nBefore choosing collection set.\nYoung_list:"); _young_list->print(); g1_policy()->print_collection_set(g1_policy()->inc_cset_head(), gclog_or_tty); #endif // YOUNG_LIST_VERBOSE ! g1_policy()->finalize_cset(target_pause_time_ms, evacuation_info); register_humongous_regions_with_cset(); assert(check_cset_fast_test(), "Inconsistency in the InCSetState table."); --- 4127,4139 ---- gclog_or_tty->print_cr("\nBefore choosing collection set.\nYoung_list:"); _young_list->print(); g1_policy()->print_collection_set(g1_policy()->inc_cset_head(), gclog_or_tty); #endif // YOUNG_LIST_VERBOSE ! g1_policy()->finalize_cset(target_pause_time_ms); ! ! evacuation_info.set_collectionset_regions(g1_policy()->cset_region_length()); register_humongous_regions_with_cset(); assert(check_cset_fast_test(), "Inconsistency in the InCSetState table.");
*** 4251,4261 **** // This timing is only used by the ergonomics to handle our pause target. // It is unclear why this should not include the full pause. We will // investigate this in CR 7178365. double sample_end_time_sec = os::elapsedTime(); double pause_time_ms = (sample_end_time_sec - sample_start_time_sec) * MILLIUNITS; ! g1_policy()->record_collection_pause_end(pause_time_ms, evacuation_info); MemoryService::track_memory_usage(); // In prepare_for_verify() below we'll need to scan the deferred // update buffers to bring the RSets up-to-date if --- 4253,4266 ---- // This timing is only used by the ergonomics to handle our pause target. // It is unclear why this should not include the full pause. We will // investigate this in CR 7178365. double sample_end_time_sec = os::elapsedTime(); double pause_time_ms = (sample_end_time_sec - sample_start_time_sec) * MILLIUNITS; ! g1_policy()->record_collection_pause_end(pause_time_ms); ! ! evacuation_info.set_collectionset_used_before(g1_policy()->collection_set_bytes_used_before()); ! evacuation_info.set_bytes_copied(g1_policy()->bytes_copied_during_gc()); MemoryService::track_memory_usage(); // In prepare_for_verify() below we'll need to scan the deferred // update buffers to bring the RSets up-to-date if
< prev index next >