equal
deleted
inserted
replaced
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "gc/g1/g1CollectedHeap.inline.hpp" |
26 #include "gc/g1/g1CollectedHeap.inline.hpp" |
27 #include "gc/g1/g1CollectorPolicy.hpp" |
27 #include "gc/g1/g1CollectorPolicy.hpp" |
|
28 #include "gc/g1/g1CollectionSet.hpp" |
28 #include "gc/g1/g1YoungRemSetSamplingThread.hpp" |
29 #include "gc/g1/g1YoungRemSetSamplingThread.hpp" |
29 #include "gc/g1/heapRegion.inline.hpp" |
30 #include "gc/g1/heapRegion.inline.hpp" |
30 #include "gc/g1/heapRegionRemSet.hpp" |
31 #include "gc/g1/heapRegionRemSet.hpp" |
31 #include "gc/g1/suspendibleThreadSet.hpp" |
32 #include "gc/g1/suspendibleThreadSet.hpp" |
32 #include "runtime/mutexLocker.hpp" |
33 #include "runtime/mutexLocker.hpp" |
112 // The current region may not yet have been added to the |
113 // The current region may not yet have been added to the |
113 // incremental collection set (it gets added when it is |
114 // incremental collection set (it gets added when it is |
114 // retired as the current allocation region). |
115 // retired as the current allocation region). |
115 if (hr->in_collection_set()) { |
116 if (hr->in_collection_set()) { |
116 // Update the collection set policy information for this region |
117 // Update the collection set policy information for this region |
117 g1p->update_incremental_cset_info(hr, rs_length); |
118 g1h->collection_set()->update_young_region_prediction(hr, rs_length); |
118 } |
119 } |
119 |
120 |
120 ++regions_visited; |
121 ++regions_visited; |
121 |
122 |
122 // we try to yield every time we visit 10 regions |
123 // we try to yield every time we visit 10 regions |