mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
6711316: Open source the Garbage-First garbage collector
First mercurial integration of the code for the Garbage-First garbage collector. Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
This commit is contained in:
parent
39463bb3fc
commit
18f3386a98
215 changed files with 36088 additions and 1249 deletions
|
@ -42,6 +42,7 @@ public:
|
|||
};
|
||||
|
||||
GenRemSet(BarrierSet * bs) : _bs(bs) {}
|
||||
GenRemSet() : _bs(NULL) {}
|
||||
|
||||
virtual Name rs_kind() = 0;
|
||||
|
||||
|
@ -53,6 +54,9 @@ public:
|
|||
// Return the barrier set associated with "this."
|
||||
BarrierSet* bs() { return _bs; }
|
||||
|
||||
// Set the barrier set.
|
||||
void set_bs(BarrierSet* bs) { _bs = bs; }
|
||||
|
||||
// Do any (sequential) processing necessary to prepare for (possibly
|
||||
// "parallel", if that arg is true) calls to younger_refs_iterate.
|
||||
virtual void prepare_for_younger_refs_iterate(bool parallel) = 0;
|
||||
|
@ -116,7 +120,10 @@ public:
|
|||
|
||||
// Informs the RS that refs in the given "mr" may have changed
|
||||
// arbitrarily, and therefore may contain old-to-young pointers.
|
||||
virtual void invalidate(MemRegion mr) = 0;
|
||||
// If "whole heap" is true, then this invalidation is part of an
|
||||
// invalidation of the whole heap, which an implementation might
|
||||
// handle differently than that of a sub-part of the heap.
|
||||
virtual void invalidate(MemRegion mr, bool whole_heap = false) = 0;
|
||||
|
||||
// Informs the RS that refs in this generation
|
||||
// may have changed arbitrarily, and therefore may contain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue