8316295: Serial: Remove empty Generation::promotion_failure_occurred
Reviewed-by: tschatzl
This commit is contained in:
parent
42dc6b5d3a
commit
bd268137ed
src/hotspot/share/gc
@ -846,8 +846,6 @@ void DefNewGeneration::collect(bool full,
|
||||
from()->set_next_compaction_space(to());
|
||||
heap->set_incremental_collection_failed();
|
||||
|
||||
// Inform the next generation that a promotion failure occurred.
|
||||
_old_gen->promotion_failure_occurred();
|
||||
_gc_tracer->report_promotion_failed(_promotion_failed_info);
|
||||
|
||||
// Reset the PromotionFailureALot counters.
|
||||
|
@ -142,12 +142,6 @@ class Generation: public CHeapObj<mtGC> {
|
||||
// might be attempted in the worst case.
|
||||
virtual bool promotion_attempt_is_safe(size_t max_promotion_in_bytes) const;
|
||||
|
||||
// For a non-young generation, this interface can be used to inform a
|
||||
// generation that a promotion attempt into that generation failed.
|
||||
// Typically used to enable diagnostic output for post-mortem analysis,
|
||||
// but other uses of the interface are not ruled out.
|
||||
virtual void promotion_failure_occurred() { /* does nothing */ }
|
||||
|
||||
// Return an estimate of the maximum allocation that could be performed
|
||||
// in the generation without triggering any collection or expansion
|
||||
// activity. It is "unsafe" because no locks are taken; the result
|
||||
|
Loading…
x
Reference in New Issue
Block a user