8166228: Remove unused HeapRegion::object_iterate_mem_careful()
Removed unused function. Reviewed-by: mgerdin, tschatzl
This commit is contained in:
parent
c354a62301
commit
9b7c58376f
@ -352,35 +352,6 @@ void HeapRegion::note_self_forwarding_removal_end(bool during_initial_mark,
|
|||||||
_prev_marked_bytes = marked_bytes;
|
_prev_marked_bytes = marked_bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
HeapWord*
|
|
||||||
HeapRegion::object_iterate_mem_careful(MemRegion mr,
|
|
||||||
ObjectClosure* cl) {
|
|
||||||
G1CollectedHeap* g1h = G1CollectedHeap::heap();
|
|
||||||
// We used to use "block_start_careful" here. But we're actually happy
|
|
||||||
// to update the BOT while we do this...
|
|
||||||
HeapWord* cur = block_start(mr.start());
|
|
||||||
mr = mr.intersection(used_region());
|
|
||||||
if (mr.is_empty()) return NULL;
|
|
||||||
// Otherwise, find the obj that extends onto mr.start().
|
|
||||||
|
|
||||||
assert(cur <= mr.start()
|
|
||||||
&& (oop(cur)->klass_or_null() == NULL ||
|
|
||||||
cur + oop(cur)->size() > mr.start()),
|
|
||||||
"postcondition of block_start");
|
|
||||||
oop obj;
|
|
||||||
while (cur < mr.end()) {
|
|
||||||
obj = oop(cur);
|
|
||||||
if (obj->klass_or_null() == NULL) {
|
|
||||||
// Ran into an unparseable point.
|
|
||||||
return cur;
|
|
||||||
} else if (!g1h->is_obj_dead(obj)) {
|
|
||||||
cl->do_object(obj);
|
|
||||||
}
|
|
||||||
cur += block_size(cur);
|
|
||||||
}
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
HeapWord*
|
HeapWord*
|
||||||
HeapRegion::
|
HeapRegion::
|
||||||
oops_on_card_seq_iterate_careful(MemRegion mr,
|
oops_on_card_seq_iterate_careful(MemRegion mr,
|
||||||
|
@ -653,17 +653,6 @@ class HeapRegion: public G1ContiguousSpace {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Requires that "mr" be entirely within the region.
|
|
||||||
// Apply "cl->do_object" to all objects that intersect with "mr".
|
|
||||||
// If the iteration encounters an unparseable portion of the region,
|
|
||||||
// or if "cl->abort()" is true after a closure application,
|
|
||||||
// terminate the iteration and return the address of the start of the
|
|
||||||
// subregion that isn't done. (The two can be distinguished by querying
|
|
||||||
// "cl->abort()".) Return of "NULL" indicates that the iteration
|
|
||||||
// completed.
|
|
||||||
HeapWord*
|
|
||||||
object_iterate_mem_careful(MemRegion mr, ObjectClosure* cl);
|
|
||||||
|
|
||||||
// filter_young: if true and the region is a young region then we
|
// filter_young: if true and the region is a young region then we
|
||||||
// skip the iteration.
|
// skip the iteration.
|
||||||
// card_ptr: if not NULL, and we decide that the card is not young
|
// card_ptr: if not NULL, and we decide that the card is not young
|
||||||
|
Loading…
Reference in New Issue
Block a user