Skip to content

Commit

Permalink
Use new ptrQueue API
Browse files Browse the repository at this point in the history
  • Loading branch information
earthling-amzn committed Aug 24, 2023
1 parent d796b08 commit da46497
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/hotspot/share/gc/shenandoah/shenandoahVerifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,14 +603,10 @@ class ShenandoahVerifyNoIncompleteSatbBuffers : public ThreadClosure {
public:
virtual void do_thread(Thread* thread) {
SATBMarkQueue& queue = ShenandoahThreadLocalData::satb_mark_queue(thread);
if (!is_empty(queue)) {
if (!queue.is_empty()) {
fatal("All SATB buffers should have been flushed during mark");
}
}
private:
bool is_empty(SATBMarkQueue& queue) {
return queue.buffer() == nullptr || queue.index() == queue.capacity();
}
};

class ShenandoahVerifierMarkedRegionTask : public WorkerTask {
Expand Down

0 comments on commit da46497

Please sign in to comment.