8183006: Remove unused IterateOopClosureRegionClosure

Reviewed-by: sjohanss, ehelin
This commit is contained in:
Thomas Schatzl 2017-06-28 12:11:55 +02:00
parent c0fff2604d
commit be1f5ab521

View File

@ -2360,20 +2360,6 @@ bool G1CollectedHeap::is_in_exact(const void* p) const {
// Iteration functions.
// Applies an ExtendedOopClosure onto all references of objects within a HeapRegion.
class IterateOopClosureRegionClosure: public HeapRegionClosure {
ExtendedOopClosure* _cl;
public:
IterateOopClosureRegionClosure(ExtendedOopClosure* cl) : _cl(cl) {}
bool doHeapRegion(HeapRegion* r) {
if (!r->is_continues_humongous()) {
r->oop_iterate(_cl);
}
return false;
}
};
// Iterates an ObjectClosure over all objects within a HeapRegion.
class IterateObjectClosureRegionClosure: public HeapRegionClosure {