comparison src/share/vm/memory/space.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 d06a2d7fcd5b
children b632e80fc9dc
comparison
equal deleted inserted replaced
4132:6d7d0790074d 4708:3c648b9ad052
185 // given address as part of an allocated object. For 185 // given address as part of an allocated object. For
186 // ceratin kinds of spaces, this might be a potentially 186 // ceratin kinds of spaces, this might be a potentially
187 // expensive operation. To prevent performance problems 187 // expensive operation. To prevent performance problems
188 // on account of its inadvertent use in product jvm's, 188 // on account of its inadvertent use in product jvm's,
189 // we restrict its use to assertion checks only. 189 // we restrict its use to assertion checks only.
190 virtual bool is_in(const void* p) const; 190 virtual bool is_in(const void* p) const = 0;
191 191
192 // Returns true iff the given reserved memory of the space contains the 192 // Returns true iff the given reserved memory of the space contains the
193 // given address. 193 // given address.
194 bool is_in_reserved(const void* p) const { return _bottom <= p && p < _end; } 194 bool is_in_reserved(const void* p) const { return _bottom <= p && p < _end; }
195 195