< prev index next >
src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.inline.hpp
Print this page
rev 51547 : Refactor to group marking bitmap and TAMS structure in one class ShenandoahMarkingContext
@@ -27,10 +27,11 @@
#include "gc/shared/markBitMap.inline.hpp"
#include "gc/shenandoah/shenandoahBarrierSet.inline.hpp"
#include "gc/shenandoah/shenandoahHeap.inline.hpp"
#include "gc/shenandoah/shenandoahHeapRegion.inline.hpp"
#include "gc/shenandoah/shenandoahHeapRegionSet.inline.hpp"
+#include "gc/shenandoah/shenandoahMarkingContext.inline.hpp"
#include "gc/shenandoah/shenandoahStringDedup.hpp"
#include "gc/shenandoah/shenandoahTraversalGC.hpp"
#include "gc/shenandoah/shenandoahTaskqueue.hpp"
#include "memory/iterator.inline.hpp"
#include "oops/oop.inline.hpp"
@@ -74,11 +75,11 @@
if (src != NULL) {
_matrix->set_connected(src, obj);
}
}
- if (_heap->mark_next(obj)) {
+ if (_heap->next_marking_context()->mark(obj)) {
bool succeeded = queue->push(ShenandoahMarkTask(obj));
assert(succeeded, "must succeed to push to task queue");
if (STRING_DEDUP && ShenandoahStringDedup::is_candidate(obj) && !_heap->cancelled_gc()) {
assert(ShenandoahStringDedup::is_enabled(), "Must be enabled");
< prev index next >