< prev index next >

src/share/vm/gc_implementation/g1/heapRegion.inline.hpp

Print this page
rev 7696 : 8030646: track collection set membership in one place

@@ -193,6 +193,10 @@
       assert(top() >= _next_top_at_mark_start, "invariant");
     }
   }
 }
 
+inline bool HeapRegion::in_collection_set() const {
+  return G1CollectedHeap::heap()->is_in_cset(this);
+}
+
 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_HEAPREGION_INLINE_HPP
< prev index next >