diff src/share/vm/memory/space.cpp @ 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 fc2b798ab316
children b632e80fc9dc
line wrap: on
line diff
--- a/src/share/vm/memory/space.cpp	Fri Dec 09 19:28:34 2011 -0800
+++ b/src/share/vm/memory/space.cpp	Wed Dec 14 12:15:26 2011 +0100
@@ -304,11 +304,6 @@
   CompactibleSpace::clear(mangle_space);
 }
 
-bool Space::is_in(const void* p) const {
-  HeapWord* b = block_start_const(p);
-  return b != NULL && block_is_obj(b);
-}
-
 bool ContiguousSpace::is_in(const void* p) const {
   return _bottom <= p && p < _top;
 }