There is some cleanup that can be done in the G1CollectorPolicy class. - Fields _n_marks and _n_marks_since_last_pause seem to be updated but never used and can be safely removed. - The work done in record_concurrent_mark_cleanup_end() is split into record_concurrent_mark_cleanup_end_work1() and record_concurrent_mark_cleanup_end_workd2() and those two methods are also re-used in G1CollectorPolicy_BestRegionsFirst::record_concurrent_mark_cleanup_end(). It'd be nice to somehow unify them. - In fact, we should probably fold the functionality from the G1CollectorPolicy_BestRegionsFirst class into the G1CollectorPolicy class and get rid of the former. I don't think we'll be needing this separation in the short term.
|