Skip to content

Commit

Permalink
8333035: Parallel: Remove ParMarkBitMap::IterationStatus
Browse files Browse the repository at this point in the history
Reviewed-by: tschatzl
  • Loading branch information
albertnetymk committed May 28, 2024
1 parent 87a06b6 commit 4754f05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
3 changes: 0 additions & 3 deletions src/hotspot/share/gc/parallel/parMarkBitMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ class ParMarkBitMap: public CHeapObj<mtGC> {
public:
typedef BitMap::idx_t idx_t;

// Values returned by the iterate() methods.
enum IterationStatus { incomplete, complete, full };

inline ParMarkBitMap();
bool initialize(MemRegion covered_region);

Expand Down
4 changes: 1 addition & 3 deletions src/hotspot/share/gc/parallel/psParallelCompact.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2624,8 +2624,7 @@ void MoveAndUpdateClosure::complete_region(ParCompactionManager *cm, HeapWord *d
region_ptr->set_completed();
}

MoveAndUpdateClosure::IterationStatus
MoveAndUpdateClosure::do_addr(HeapWord* addr, size_t words) {
void MoveAndUpdateClosure::do_addr(HeapWord* addr, size_t words) {
assert(destination() != nullptr, "sanity");
_source = addr;

Expand All @@ -2648,7 +2647,6 @@ MoveAndUpdateClosure::do_addr(HeapWord* addr, size_t words) {
}

update_state(words);
return is_full() ? ParMarkBitMap::full : ParMarkBitMap::incomplete;
}

void MoveAndUpdateShadowClosure::complete_region(ParCompactionManager *cm, HeapWord *dest_addr,
Expand Down
7 changes: 2 additions & 5 deletions src/hotspot/share/gc/parallel/psParallelCompact.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,6 @@ class MoveAndUpdateClosure: public StackObj {

public:
typedef ParMarkBitMap::idx_t idx_t;
typedef ParMarkBitMap::IterationStatus IterationStatus;

ParMarkBitMap* bitmap() const { return _bitmap; }

Expand All @@ -914,10 +913,8 @@ class MoveAndUpdateClosure: public StackObj {
void set_source(HeapWord* addr) { _source = addr; }

// If the object will fit (size <= words_remaining()), copy it to the current
// destination, update the interior oops and the start array and return either
// full (if the closure is full) or incomplete. If the object will not fit,
// return would_overflow.
virtual IterationStatus do_addr(HeapWord* addr, size_t words);
// destination, update the interior oops and the start array.
void do_addr(HeapWord* addr, size_t words);

inline MoveAndUpdateClosure(ParMarkBitMap* bitmap, size_t region);

Expand Down

1 comment on commit 4754f05

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