Mercurial > hg > truffle
diff src/share/vm/memory/generation.hpp @ 1339:09ac706c2623
Merge
author | asaha |
---|---|
date | Wed, 24 Mar 2010 17:16:33 -0700 |
parents | e018e6884bd8 |
children | c18cbe5936b8 |
line wrap: on
line diff
--- a/src/share/vm/memory/generation.hpp Mon Mar 15 15:51:36 2010 -0400 +++ b/src/share/vm/memory/generation.hpp Wed Mar 24 17:16:33 2010 -0700 @@ -181,6 +181,12 @@ virtual bool promotion_attempt_is_safe(size_t promotion_in_bytes, bool younger_handles_promotion_failure) 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