src/share/vm/gc_interface/collectedHeap.hpp

changeset 1424
148e5441d916
parent 1280
df6caf649ff7
child 1428
54b3b351d6f9
equal deleted inserted replaced
1422:00977607da34 1424:148e5441d916
254 254
255 bool is_in_permanent_or_null(const void *p) const { 255 bool is_in_permanent_or_null(const void *p) const {
256 return p == NULL || is_in_permanent(p); 256 return p == NULL || is_in_permanent(p);
257 } 257 }
258 258
259 // An object is scavengable if its location may move during a scavenge.
260 // (A scavenge is a GC which is not a full GC.)
261 // Currently, this just means it is not perm (and not null).
262 // This could change if we rethink what's in perm-gen.
263 bool is_scavengable(const void *p) const {
264 return !is_in_permanent_or_null(p);
265 }
266
259 // Returns "TRUE" if "p" is a method oop in the 267 // Returns "TRUE" if "p" is a method oop in the
260 // current heap, with high probability. This predicate 268 // current heap, with high probability. This predicate
261 // is not stable, in general. 269 // is not stable, in general.
262 bool is_valid_method(oop p) const; 270 bool is_valid_method(oop p) const;
263 271

mercurial