comparison src/share/vm/memory/generation.hpp @ 4708:3c648b9ad052

7121373: Clean up CollectedHeap::is_in Summary: Fixed G1CollectedHeap::is_in, added tests, cleaned up comments and made Space::is_in pure virtual. Reviewed-by: brutisso, tonyp, jcoomes
author stefank
date Wed, 14 Dec 2011 12:15:26 +0100
parents f95d63e2154a
children e7dead7e90af
comparison
equal deleted inserted replaced
4132:6d7d0790074d 4708:3c648b9ad052
218 virtual MemRegion used_region() const { return _reserved; } 218 virtual MemRegion used_region() const { return _reserved; }
219 219
220 MemRegion prev_used_region() const { return _prev_used_region; } 220 MemRegion prev_used_region() const { return _prev_used_region; }
221 virtual void save_used_region() { _prev_used_region = used_region(); } 221 virtual void save_used_region() { _prev_used_region = used_region(); }
222 222
223 // Returns "TRUE" iff "p" points into an allocated object in the generation. 223 // Returns "TRUE" iff "p" points into the committed areas in the generation.
224 // For some kinds of generations, this may be an expensive operation. 224 // For some kinds of generations, this may be an expensive operation.
225 // To avoid performance problems stemming from its inadvertent use in 225 // To avoid performance problems stemming from its inadvertent use in
226 // product jvm's, we restrict its use to assertion checking or 226 // product jvm's, we restrict its use to assertion checking or
227 // verification only. 227 // verification only.
228 virtual bool is_in(const void* p) const; 228 virtual bool is_in(const void* p) const;