Skip to content

Commit bd26813

Browse files
committed
8316295: Serial: Remove empty Generation::promotion_failure_occurred
Reviewed-by: tschatzl
1 parent 42dc6b5 commit bd26813

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/hotspot/share/gc/serial/defNewGeneration.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,6 @@ void DefNewGeneration::collect(bool full,
846846
from()->set_next_compaction_space(to());
847847
heap->set_incremental_collection_failed();
848848

849-
// Inform the next generation that a promotion failure occurred.
850-
_old_gen->promotion_failure_occurred();
851849
_gc_tracer->report_promotion_failed(_promotion_failed_info);
852850

853851
// Reset the PromotionFailureALot counters.

src/hotspot/share/gc/shared/generation.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,6 @@ class Generation: public CHeapObj<mtGC> {
142142
// might be attempted in the worst case.
143143
virtual bool promotion_attempt_is_safe(size_t max_promotion_in_bytes) const;
144144

145-
// For a non-young generation, this interface can be used to inform a
146-
// generation that a promotion attempt into that generation failed.
147-
// Typically used to enable diagnostic output for post-mortem analysis,
148-
// but other uses of the interface are not ruled out.
149-
virtual void promotion_failure_occurred() { /* does nothing */ }
150-
151145
// Return an estimate of the maximum allocation that could be performed
152146
// in the generation without triggering any collection or expansion
153147
// activity. It is "unsafe" because no locks are taken; the result

0 commit comments

Comments
 (0)