src/share/vm/gc_interface/collectedHeap.hpp

changeset 1376
8b46c4d82093
parent 1280
df6caf649ff7
child 1428
54b3b351d6f9
     1.1 --- a/src/share/vm/gc_interface/collectedHeap.hpp	Mon Aug 31 05:27:29 2009 -0700
     1.2 +++ b/src/share/vm/gc_interface/collectedHeap.hpp	Wed Sep 02 00:04:29 2009 -0700
     1.3 @@ -239,6 +239,9 @@
     1.4      return p == NULL || is_in_closed_subset(p);
     1.5    }
     1.6  
     1.7 +  // XXX is_permanent() and is_in_permanent() should be better named
     1.8 +  // to distinguish one from the other.
     1.9 +
    1.10    // Returns "TRUE" if "p" is allocated as "permanent" data.
    1.11    // If the heap does not use "permanent" data, returns the same
    1.12    // value is_in_reserved() would return.
    1.13 @@ -247,13 +250,17 @@
    1.14    // space). If you need the more conservative answer use is_permanent().
    1.15    virtual bool is_in_permanent(const void *p) const = 0;
    1.16  
    1.17 +  bool is_in_permanent_or_null(const void *p) const {
    1.18 +    return p == NULL || is_in_permanent(p);
    1.19 +  }
    1.20 +
    1.21    // Returns "TRUE" if "p" is in the committed area of  "permanent" data.
    1.22    // If the heap does not use "permanent" data, returns the same
    1.23    // value is_in() would return.
    1.24    virtual bool is_permanent(const void *p) const = 0;
    1.25  
    1.26 -  bool is_in_permanent_or_null(const void *p) const {
    1.27 -    return p == NULL || is_in_permanent(p);
    1.28 +  bool is_permanent_or_null(const void *p) const {
    1.29 +    return p == NULL || is_permanent(p);
    1.30    }
    1.31  
    1.32    // Returns "TRUE" if "p" is a method oop in the

mercurial