< prev index next >

src/hotspot/share/gc/shared/collectedHeap.cpp

Print this page
rev 47864 : 8191564: Refactor GC related servicability code into GC specific subclasses

*** 170,179 **** --- 170,180 ---- // Memory state functions. CollectedHeap::CollectedHeap() : _barrier_set(NULL), + _servicability(NULL), _is_gc_active(false), _total_collections(0), _total_full_collections(0), _gc_cause(GCCause::_no_gc), _gc_lastcause(GCCause::_no_gc),
*** 607,611 **** --- 608,620 ---- // temporarily think something is in the heap. (Seen this happen in asserts.) _reserved.set_word_size(0); _reserved.set_start(start); _reserved.set_end(end); } + + GCServicabilitySupport* CollectedHeap::servicability_support() { + if (_servicability == NULL) { + _servicability = create_servicability_support(); + } + assert(_servicability != NULL, "Need servicability support"); + return _servicability; + }
< prev index next >