8316295: Serial: Remove empty Generation::promotion_failure_occurred

Reviewed-by: tschatzl
This commit is contained in:
Albert Mingkun Yang 2023-09-15 11:39:16 +00:00
parent 42dc6b5d3a
commit bd268137ed
2 changed files with 0 additions and 8 deletions
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