Mercurial > hg > truffle
comparison src/share/vm/memory/generation.hpp @ 1339:09ac706c2623
Merge
author | asaha |
---|---|
date | Wed, 24 Mar 2010 17:16:33 -0700 |
parents | e018e6884bd8 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1338:f5dd08ad65df | 1339:09ac706c2623 |
---|---|
179 // is true if the younger generation handles a promotion | 179 // is true if the younger generation handles a promotion |
180 // failure. | 180 // failure. |
181 virtual bool promotion_attempt_is_safe(size_t promotion_in_bytes, | 181 virtual bool promotion_attempt_is_safe(size_t promotion_in_bytes, |
182 bool younger_handles_promotion_failure) const; | 182 bool younger_handles_promotion_failure) const; |
183 | 183 |
184 // For a non-young generation, this interface can be used to inform a | |
185 // generation that a promotion attempt into that generation failed. | |
186 // Typically used to enable diagnostic output for post-mortem analysis, | |
187 // but other uses of the interface are not ruled out. | |
188 virtual void promotion_failure_occurred() { /* does nothing */ } | |
189 | |
184 // Return an estimate of the maximum allocation that could be performed | 190 // Return an estimate of the maximum allocation that could be performed |
185 // in the generation without triggering any collection or expansion | 191 // in the generation without triggering any collection or expansion |
186 // activity. It is "unsafe" because no locks are taken; the result | 192 // activity. It is "unsafe" because no locks are taken; the result |
187 // should be treated as an approximation, not a guarantee, for use in | 193 // should be treated as an approximation, not a guarantee, for use in |
188 // heuristic resizing decisions. | 194 // heuristic resizing decisions. |