class G1CollectionSetCandidates; class WorkerThreads;
// Helper class to calculate collection set candidates, and containing some related // methods. class G1CollectionSetChooser : public AllStatic { static uint calculate_work_chunk_size(uint num_workers, uint num_regions);
// Remove regions in the collection set candidates as long as the G1HeapWastePercent // criteria is met. Keep at least the minimum amount of old regions to guarantee // some progress. staticvoid prune(G1CollectionSetCandidates* candidates); public:
// Determine whether to add the given region to the collection set candidates or // not. Currently, we skip pinned regions and regions whose live // bytes are over the threshold. Humongous regions may be reclaimed during cleanup. // Regions also need a complete remembered set to be a candidate. staticbool should_add(HeapRegion* hr);
// Build and return set of collection set candidates sorted by decreasing gc // efficiency. static G1CollectionSetCandidates* build(WorkerThreads* workers, uint max_num_regions);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.