8323264: Serial: Remove unused GenerationBlockSizeClosure
Reviewed-by: stefank
This commit is contained in:
parent
52a6c37558
commit
6e9671a8a8
@ -173,18 +173,6 @@ HeapWord* Generation::block_start(const void* p) const {
|
|||||||
return blk._start;
|
return blk._start;
|
||||||
}
|
}
|
||||||
|
|
||||||
class GenerationBlockSizeClosure : public SpaceClosure {
|
|
||||||
public:
|
|
||||||
const HeapWord* _p;
|
|
||||||
size_t size;
|
|
||||||
virtual void do_space(Space* s) {
|
|
||||||
if (size == 0 && s->is_in_reserved(_p)) {
|
|
||||||
size = s->block_size(_p);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
GenerationBlockSizeClosure(const HeapWord* p) { _p = p; size = 0; }
|
|
||||||
};
|
|
||||||
|
|
||||||
class GenerationBlockIsObjClosure : public SpaceClosure {
|
class GenerationBlockIsObjClosure : public SpaceClosure {
|
||||||
public:
|
public:
|
||||||
const HeapWord* _p;
|
const HeapWord* _p;
|
||||||
|
Loading…
Reference in New Issue
Block a user