comparison src/share/vm/gc_interface/collectedHeap.hpp @ 7176:59c790074993

8003635: NPG: AsynchGetCallTrace broken by Method* virtual call Summary: Make metaspace::contains be lock free and used to see if something is in metaspace, also compare Method* with vtbl pointer. Reviewed-by: dholmes, sspitsyn, dcubed, jmasa
author coleenp
date Wed, 28 Nov 2012 17:50:21 -0500
parents da91efe96a93
children ff4fa8b0516e 7b835924c31c
comparison
equal deleted inserted replaced
7175:b51dc8df86e5 7176:59c790074993
287 287
288 // An object is scavengable if its location may move during a scavenge. 288 // An object is scavengable if its location may move during a scavenge.
289 // (A scavenge is a GC which is not a full GC.) 289 // (A scavenge is a GC which is not a full GC.)
290 virtual bool is_scavengable(const void *p) = 0; 290 virtual bool is_scavengable(const void *p) = 0;
291 291
292 // Returns "TRUE" if "p" is a method oop in the
293 // current heap, with high probability. This predicate
294 // is not stable, in general.
295 bool is_valid_method(Method* p) const;
296
297 void set_gc_cause(GCCause::Cause v) { 292 void set_gc_cause(GCCause::Cause v) {
298 if (UsePerfData) { 293 if (UsePerfData) {
299 _gc_lastcause = _gc_cause; 294 _gc_lastcause = _gc_cause;
300 _perf_gc_lastcause->set_value(GCCause::to_string(_gc_lastcause)); 295 _perf_gc_lastcause->set_value(GCCause::to_string(_gc_lastcause));
301 _perf_gc_cause->set_value(GCCause::to_string(v)); 296 _perf_gc_cause->set_value(GCCause::to_string(v));