8077836: Make sure G1ParGCAllocBuffer are marked as retired
Reviewed-by: tschatzl, pliden
This commit is contained in:
parent
f3e710a50e
commit
ace7f7933e
@ -169,6 +169,11 @@ public:
|
||||
PLAB::retire();
|
||||
_retired = true;
|
||||
}
|
||||
|
||||
virtual void flush_and_retire_stats(PLABStats* stats) {
|
||||
PLAB::flush_and_retire_stats(stats);
|
||||
_retired = true;
|
||||
}
|
||||
};
|
||||
|
||||
class G1ParGCAllocator : public CHeapObj<mtGC> {
|
||||
@ -211,6 +216,7 @@ public:
|
||||
_g1h(g1h), _survivor_alignment_bytes(calc_survivor_alignment_bytes()),
|
||||
_alloc_buffer_waste(0), _undo_waste(0) {
|
||||
}
|
||||
virtual ~G1ParGCAllocator() { }
|
||||
|
||||
static G1ParGCAllocator* create_allocator(G1CollectedHeap* g1h);
|
||||
|
||||
|
@ -133,7 +133,7 @@ public:
|
||||
// Flush allocation statistics into the given PLABStats supporting ergonomic
|
||||
// sizing of PLAB's and retire the current buffer. To be called at the end of
|
||||
// GC.
|
||||
void flush_and_retire_stats(PLABStats* stats);
|
||||
virtual void flush_and_retire_stats(PLABStats* stats);
|
||||
|
||||
// Fills in the unallocated portion of the buffer with a garbage object and updates
|
||||
// statistics. To be called during GC.
|
||||
|
Loading…
x
Reference in New Issue
Block a user