1.1 --- a/src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp Thu May 12 19:39:58 2011 -0700 1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp Tue May 03 10:30:34 2011 -0700 1.3 @@ -127,6 +127,12 @@ 1.4 // collection. 1.5 virtual bool is_maximal_no_gc() const; 1.6 1.7 + // Return true if the reference points to an object that 1.8 + // can be moved in a partial collection. For currently implemented 1.9 + // generational collectors that means during a collection of 1.10 + // the young gen. 1.11 + virtual bool is_scavengable(const void* addr); 1.12 + 1.13 // Does this heap support heap inspection? (+PrintClassHistogram) 1.14 bool supports_heap_inspection() const { return true; } 1.15 1.16 @@ -143,6 +149,10 @@ 1.17 return perm_gen()->reserved().contains(p); 1.18 } 1.19 1.20 +#ifdef ASSERT 1.21 + virtual bool is_in_partial_collection(const void *p); 1.22 +#endif 1.23 + 1.24 bool is_permanent(const void *p) const { // committed part 1.25 return perm_gen()->is_in(p); 1.26 }