hotspot/src/share/vm/memory/space.cpp
changeset 11247 d6faa02b3802
parent 9624 c3657c3324ee
child 12379 2cf45b79ce3a
equal deleted inserted replaced
11208:101816314520 11247:d6faa02b3802
   302   set_top(bottom());
   302   set_top(bottom());
   303   set_saved_mark();
   303   set_saved_mark();
   304   CompactibleSpace::clear(mangle_space);
   304   CompactibleSpace::clear(mangle_space);
   305 }
   305 }
   306 
   306 
   307 bool Space::is_in(const void* p) const {
       
   308   HeapWord* b = block_start_const(p);
       
   309   return b != NULL && block_is_obj(b);
       
   310 }
       
   311 
       
   312 bool ContiguousSpace::is_in(const void* p) const {
   307 bool ContiguousSpace::is_in(const void* p) const {
   313   return _bottom <= p && p < _top;
   308   return _bottom <= p && p < _top;
   314 }
   309 }
   315 
   310 
   316 bool ContiguousSpace::is_free_block(const HeapWord* p) const {
   311 bool ContiguousSpace::is_free_block(const HeapWord* p) const {