Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 4013:074f0252cc13
7088680: G1: Cleanup in the G1CollectorPolicy class
Summary: Removed unused fields and methods, removed the G1CollectoryPolicy_BestRegionsFirst class and folded its functionality into the G1CollectorPolicy class.
Reviewed-by: ysr, brutisso, jcoomes
author | tonyp |
---|---|
date | Fri, 14 Oct 2011 11:12:24 -0400 |
parents | 65a8ff39a6da |
children | bf2d2b8b1726 |
comparison
equal
deleted
inserted
replaced
4012:ec4b032a4977 | 4013:074f0252cc13 |
---|---|
2008 return JNI_ENOMEM; | 2008 return JNI_ENOMEM; |
2009 } | 2009 } |
2010 | 2010 |
2011 // Perform any initialization actions delegated to the policy. | 2011 // Perform any initialization actions delegated to the policy. |
2012 g1_policy()->init(); | 2012 g1_policy()->init(); |
2013 | |
2014 g1_policy()->note_start_of_mark_thread(); | |
2015 | 2013 |
2016 _refine_cte_cl = | 2014 _refine_cte_cl = |
2017 new RefineCardTableEntryClosure(ConcurrentG1RefineThread::sts(), | 2015 new RefineCardTableEntryClosure(ConcurrentG1RefineThread::sts(), |
2018 g1_rem_set(), | 2016 g1_rem_set(), |
2019 concurrent_g1_refine()); | 2017 concurrent_g1_refine()); |
3958 if (_g1h->mark_in_progress()) { | 3956 if (_g1h->mark_in_progress()) { |
3959 cur->note_start_of_marking(false); | 3957 cur->note_start_of_marking(false); |
3960 // _next_top_at_mark_start == top, _next_marked_bytes == 0 | 3958 // _next_top_at_mark_start == top, _next_marked_bytes == 0 |
3961 // _next_marked_bytes == next_marked_bytes. | 3959 // _next_marked_bytes == next_marked_bytes. |
3962 } | 3960 } |
3963 | |
3964 // Now make sure the region has the right index in the sorted array. | |
3965 g1_policy()->note_change_in_marked_bytes(cur); | |
3966 } | 3961 } |
3967 cur = cur->next_in_collection_set(); | 3962 cur = cur->next_in_collection_set(); |
3968 } | 3963 } |
3969 assert(g1_policy()->assertMarkedBytesDataOK(), "Should be!"); | 3964 assert(g1_policy()->assertMarkedBytesDataOK(), "Should be!"); |
3970 | 3965 |