1.1 --- a/src/share/vm/gc_interface/collectedHeap.hpp Fri Dec 09 19:28:34 2011 -0800 1.2 +++ b/src/share/vm/gc_interface/collectedHeap.hpp Wed Dec 14 12:15:26 2011 +0100 1.3 @@ -217,8 +217,8 @@ 1.4 return p == NULL || is_in_reserved(p); 1.5 } 1.6 1.7 - // Returns "TRUE" if "p" points to the head of an allocated object in the 1.8 - // heap. Since this method can be expensive in general, we restrict its 1.9 + // Returns "TRUE" iff "p" points into the committed areas of the heap. 1.10 + // Since this method can be expensive in general, we restrict its 1.11 // use to assertion checking only. 1.12 virtual bool is_in(const void* p) const = 0; 1.13 1.14 @@ -648,6 +648,10 @@ 1.15 // reduce the occurrence of ParallelGCThreads to uses where the 1.16 // actual number may be germane. 1.17 static bool use_parallel_gc_threads() { return ParallelGCThreads > 0; } 1.18 + 1.19 + /////////////// Unit tests /////////////// 1.20 + 1.21 + NOT_PRODUCT(static void test_is_in();) 1.22 }; 1.23 1.24 // Class to set and reset the GC cause for a CollectedHeap.