mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8151178: Move the collection set out of the G1 collector policy
Create a G1CollectionSet class Reviewed-by: jwilhelm, tbenson, tschatzl
This commit is contained in:
parent
c5a4113326
commit
b7486d2544
10 changed files with 700 additions and 560 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "precompiled.hpp"
|
||||
#include "gc/g1/g1CollectedHeap.inline.hpp"
|
||||
#include "gc/g1/g1CollectorPolicy.hpp"
|
||||
#include "gc/g1/g1CollectionSet.hpp"
|
||||
#include "gc/g1/g1YoungRemSetSamplingThread.hpp"
|
||||
#include "gc/g1/heapRegion.inline.hpp"
|
||||
#include "gc/g1/heapRegionRemSet.hpp"
|
||||
|
@ -114,7 +115,7 @@ void G1YoungRemSetSamplingThread::sample_young_list_rs_lengths() {
|
|||
// retired as the current allocation region).
|
||||
if (hr->in_collection_set()) {
|
||||
// Update the collection set policy information for this region
|
||||
g1p->update_incremental_cset_info(hr, rs_length);
|
||||
g1h->collection_set()->update_young_region_prediction(hr, rs_length);
|
||||
}
|
||||
|
||||
++regions_visited;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue