8323264: Serial: Remove unused GenerationBlockSizeClosure

Reviewed-by: stefank
This commit is contained in:
Albert Mingkun Yang 2024-01-09 10:37:02 +00:00
parent 52a6c37558
commit 6e9671a8a8

View File

@ -173,18 +173,6 @@ HeapWord* Generation::block_start(const void* p) const {
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 {
public:
const HeapWord* _p;