232 // Perform a full collection of generations up to and including max_generation. |
232 // Perform a full collection of generations up to and including max_generation. |
233 // Mostly used for testing purposes. Caller does not hold the Heap_lock on entry. |
233 // Mostly used for testing purposes. Caller does not hold the Heap_lock on entry. |
234 void collect(GCCause::Cause cause, GenerationType max_generation); |
234 void collect(GCCause::Cause cause, GenerationType max_generation); |
235 |
235 |
236 // Returns "TRUE" iff "p" points into the committed areas of the heap. |
236 // Returns "TRUE" iff "p" points into the committed areas of the heap. |
237 // The methods is_in(), is_in_closed_subset() and is_in_youngest() may |
237 // The methods is_in() and is_in_youngest() may be expensive to compute |
238 // be expensive to compute in general, so, to prevent |
238 // in general, so, to prevent their inadvertent use in product jvm's, we |
239 // their inadvertent use in product jvm's, we restrict their use to |
239 // restrict their use to assertion checking or verification only. |
240 // assertion checking or verification only. |
|
241 bool is_in(const void* p) const; |
240 bool is_in(const void* p) const; |
242 |
241 |
243 // Returns true if the reference is to an object in the reserved space |
242 // Returns true if the reference is to an object in the reserved space |
244 // for the young generation. |
243 // for the young generation. |
245 // Assumes the the young gen address range is less than that of the old gen. |
244 // Assumes the the young gen address range is less than that of the old gen. |