Skip to content

Commit

Permalink
8323264: Serial: Remove unused GenerationBlockSizeClosure
Browse files Browse the repository at this point in the history
Reviewed-by: stefank
  • Loading branch information
albertnetymk committed Jan 9, 2024
1 parent 52a6c37 commit 6e9671a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/hotspot/share/gc/serial/generation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

1 comment on commit 6e9671a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.