Skip to content

Commit

Permalink
8324543: Remove Space::object_iterate
Browse files Browse the repository at this point in the history
Reviewed-by: stefank, kbarrett
  • Loading branch information
albertnetymk committed Jan 24, 2024
1 parent 6d2f640 commit b65e5eb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/hotspot/share/gc/shared/space.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ class Space: public CHeapObj<mtGC> {
virtual size_t used() const = 0;
virtual size_t free() const = 0;

// Iterate over all objects in the space, calling "cl.do_object" on
// each. Objects allocated by applications of the closure are not
// included in the iteration.
virtual void object_iterate(ObjectClosure* blk) = 0;

// If "p" is in the space, returns the address of the start of the
// "block" that contains "p". We say "block" instead of "object" since
// some heaps may not pack objects densely; a chunk may either be an
Expand Down Expand Up @@ -271,7 +266,7 @@ class ContiguousSpace: public Space {
HeapWord* par_allocate(size_t word_size) override;

// Iteration
void object_iterate(ObjectClosure* blk) override;
void object_iterate(ObjectClosure* blk);

// Apply "blk->do_oop" to the addresses of all reference fields in objects
// starting with the _saved_mark_word, which was noted during a generation's
Expand Down

1 comment on commit b65e5eb

@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.