src/share/vm/gc_interface/collectedHeap.hpp

changeset 2909
2aa9ddbb9e60
parent 2314
f95d63e2154a
child 2969
6747fd0512e0
     1.1 --- a/src/share/vm/gc_interface/collectedHeap.hpp	Thu May 12 19:39:58 2011 -0700
     1.2 +++ b/src/share/vm/gc_interface/collectedHeap.hpp	Tue May 03 10:30:34 2011 -0700
     1.3 @@ -269,6 +269,13 @@
     1.4    // space). If you need the more conservative answer use is_permanent().
     1.5    virtual bool is_in_permanent(const void *p) const = 0;
     1.6  
     1.7 +
     1.8 +#ifdef ASSERT
     1.9 +  // Returns true if "p" is in the part of the
    1.10 +  // heap being collected.
    1.11 +  virtual bool is_in_partial_collection(const void *p) = 0;
    1.12 +#endif
    1.13 +
    1.14    bool is_in_permanent_or_null(const void *p) const {
    1.15      return p == NULL || is_in_permanent(p);
    1.16    }
    1.17 @@ -284,11 +291,7 @@
    1.18  
    1.19    // An object is scavengable if its location may move during a scavenge.
    1.20    // (A scavenge is a GC which is not a full GC.)
    1.21 -  // Currently, this just means it is not perm (and not null).
    1.22 -  // This could change if we rethink what's in perm-gen.
    1.23 -  bool is_scavengable(const void *p) const {
    1.24 -    return !is_in_permanent_or_null(p);
    1.25 -  }
    1.26 +  virtual bool is_scavengable(const void *p) = 0;
    1.27  
    1.28    // Returns "TRUE" if "p" is a method oop in the
    1.29    // current heap, with high probability. This predicate

mercurial