mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
7088680: G1: Cleanup in the G1CollectorPolicy class
Removed unused fields and methods, removed the G1CollectoryPolicy_BestRegionsFirst class and folded its functionality into the G1CollectorPolicy class. Reviewed-by: ysr, brutisso, jcoomes
This commit is contained in:
parent
d1c6787aa1
commit
81bdd2ccc6
5 changed files with 59 additions and 203 deletions
|
@ -2011,8 +2011,6 @@ jint G1CollectedHeap::initialize() {
|
|||
// Perform any initialization actions delegated to the policy.
|
||||
g1_policy()->init();
|
||||
|
||||
g1_policy()->note_start_of_mark_thread();
|
||||
|
||||
_refine_cte_cl =
|
||||
new RefineCardTableEntryClosure(ConcurrentG1RefineThread::sts(),
|
||||
g1_rem_set(),
|
||||
|
@ -3960,9 +3958,6 @@ void G1CollectedHeap::remove_self_forwarding_pointers() {
|
|||
// _next_top_at_mark_start == top, _next_marked_bytes == 0
|
||||
// _next_marked_bytes == next_marked_bytes.
|
||||
}
|
||||
|
||||
// Now make sure the region has the right index in the sorted array.
|
||||
g1_policy()->note_change_in_marked_bytes(cur);
|
||||
}
|
||||
cur = cur->next_in_collection_set();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue