src/share/vm/memory/generation.hpp

changeset 1580
e018e6884bd8
parent 1014
0fbdb4381b99
child 1907
c18cbe5936b8
     1.1 --- a/src/share/vm/memory/generation.hpp	Wed Dec 16 15:12:51 2009 -0800
     1.2 +++ b/src/share/vm/memory/generation.hpp	Wed Dec 23 09:23:54 2009 -0800
     1.3 @@ -181,6 +181,12 @@
     1.4    virtual bool promotion_attempt_is_safe(size_t promotion_in_bytes,
     1.5      bool younger_handles_promotion_failure) const;
     1.6  
     1.7 +  // For a non-young generation, this interface can be used to inform a
     1.8 +  // generation that a promotion attempt into that generation failed.
     1.9 +  // Typically used to enable diagnostic output for post-mortem analysis,
    1.10 +  // but other uses of the interface are not ruled out.
    1.11 +  virtual void promotion_failure_occurred() { /* does nothing */ }
    1.12 +
    1.13    // Return an estimate of the maximum allocation that could be performed
    1.14    // in the generation without triggering any collection or expansion
    1.15    // activity.  It is "unsafe" because no locks are taken; the result

mercurial