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
|
@ -48,6 +48,16 @@ template <class T> inline void OopsInGenClosure::do_barrier(T* p) {
|
|||
}
|
||||
}
|
||||
|
||||
inline void OopsInGenClosure::par_do_barrier(oop* p) {
|
||||
assert(generation()->is_in_reserved(p), "expected ref in generation");
|
||||
oop obj = *p;
|
||||
assert(obj != NULL, "expected non-null object");
|
||||
// If p points to a younger generation, mark the card.
|
||||
if ((HeapWord*)obj < gen_boundary()) {
|
||||
rs()->write_ref_field_gc_par(p, obj);
|
||||
}
|
||||
}
|
||||
|
||||
// NOTE! Any changes made here should also be made
|
||||
// in FastScanClosure::do_oop_work()
|
||||
template <class T> inline void ScanClosure::do_oop_work(T* p) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue