Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp @ 636:6c4cea9bfa11
6604422: G1: re-use half-promoted regions
6728271: G1: Cleanup G1CollectedHeap::get_gc_alloc_regions()
Summary: It allows the last half-full region to be allocated to during a GC to be reused during the next GC.
Reviewed-by: apetrusenko, jcoomes
author | tonyp |
---|---|
date | Sun, 15 Mar 2009 22:03:38 -0400 |
parents | 3698e8f47799 |
children | ba50942c8138 |
comparison
equal
deleted
inserted
replaced
635:fe2441500281 | 636:6c4cea9bfa11 |
---|---|
1085 gclog_or_tty->print(" (%s)", full_young_gcs() ? "young" : "partial"); | 1085 gclog_or_tty->print(" (%s)", full_young_gcs() ? "young" : "partial"); |
1086 } | 1086 } |
1087 | 1087 |
1088 assert(_g1->used_regions() == _g1->recalculate_used_regions(), | 1088 assert(_g1->used_regions() == _g1->recalculate_used_regions(), |
1089 "sanity"); | 1089 "sanity"); |
1090 assert(_g1->used() == _g1->recalculate_used(), "sanity"); | |
1090 | 1091 |
1091 double s_w_t_ms = (start_time_sec - _stop_world_start) * 1000.0; | 1092 double s_w_t_ms = (start_time_sec - _stop_world_start) * 1000.0; |
1092 _all_stop_world_times_ms->add(s_w_t_ms); | 1093 _all_stop_world_times_ms->add(s_w_t_ms); |
1093 _stop_world_start = 0.0; | 1094 _stop_world_start = 0.0; |
1094 | 1095 |