--- a/src/hotspot/share/gc/shared/space.cpp Wed Nov 20 10:37:46 2019 +0100
+++ b/src/hotspot/share/gc/shared/space.cpp Wed Nov 20 10:37:46 2019 +0100
@@ -110,18 +110,6 @@
// we (or another worker thread) may already have scanned
// or planning to scan.
void DirtyCardToOopClosure::do_MemRegion(MemRegion mr) {
-
- // Some collectors need to do special things whenever their dirty
- // cards are processed. For instance, CMS must remember mutator updates
- // (i.e. dirty cards) so as to re-scan mutated objects.
- // Such work can be piggy-backed here on dirty card scanning, so as to make
- // it slightly more efficient than doing a complete non-destructive pre-scan
- // of the card table.
- MemRegionClosure* pCl = _sp->preconsumptionDirtyCardClosure();
- if (pCl != NULL) {
- pCl->do_MemRegion(mr);
- }
-
HeapWord* bottom = mr.start();
HeapWord* last = mr.last();
HeapWord* top = mr.end();
@@ -505,21 +493,6 @@
}
}
-HeapWord*
-ContiguousSpace::object_iterate_careful(ObjectClosureCareful* blk) {
- HeapWord * limit = concurrent_iteration_safe_limit();
- assert(limit <= top(), "sanity check");
- for (HeapWord* p = bottom(); p < limit;) {
- size_t size = blk->do_object_careful(oop(p));
- if (size == 0) {
- return p; // failed at p
- } else {
- p += size;
- }
- }
- return NULL; // all done
-}
-
// Very general, slow implementation.
HeapWord* ContiguousSpace::block_start_const(const void* p) const {
assert(MemRegion(bottom(), end()).contains(p),