mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8038399: Remove dead oop_iterate MemRegion variants from SharedHeap, Generation and Space classes
Reviewed-by: tschatzl, stefank
This commit is contained in:
parent
102943d1f2
commit
74235d9630
11 changed files with 5 additions and 155 deletions
|
@ -295,22 +295,16 @@ bool Generation::block_is_obj(const HeapWord* p) const {
|
|||
|
||||
class GenerationOopIterateClosure : public SpaceClosure {
|
||||
public:
|
||||
ExtendedOopClosure* cl;
|
||||
MemRegion mr;
|
||||
ExtendedOopClosure* _cl;
|
||||
virtual void do_space(Space* s) {
|
||||
s->oop_iterate(mr, cl);
|
||||
s->oop_iterate(_cl);
|
||||
}
|
||||
GenerationOopIterateClosure(ExtendedOopClosure* _cl, MemRegion _mr) :
|
||||
cl(_cl), mr(_mr) {}
|
||||
GenerationOopIterateClosure(ExtendedOopClosure* cl) :
|
||||
_cl(cl) {}
|
||||
};
|
||||
|
||||
void Generation::oop_iterate(ExtendedOopClosure* cl) {
|
||||
GenerationOopIterateClosure blk(cl, _reserved);
|
||||
space_iterate(&blk);
|
||||
}
|
||||
|
||||
void Generation::oop_iterate(MemRegion mr, ExtendedOopClosure* cl) {
|
||||
GenerationOopIterateClosure blk(cl, mr);
|
||||
GenerationOopIterateClosure blk(cl);
|
||||
space_iterate(&blk);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue