Skip to content
Permalink
Browse files
8220503: Move ShenandoahTerminatorTerminator::should_exit_termination…
… out of header

Reviewed-by: rkennke
  • Loading branch information
adityamandaleeka authored and rkennke committed Mar 9, 2020
1 parent b58c860 commit 3ff8eff804dca8fab70d9006ec7f71a523b8e3a0
Showing with 5 additions and 2 deletions.
  1. +4 −0 src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.cpp
  2. +1 −2 src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp
@@ -88,3 +88,7 @@ void ShenandoahObjToScanQueueSet::reset_taskqueue_stats() {
}
}
#endif // TASKQUEUE_STATS

bool ShenandoahTerminatorTerminator::should_exit_termination() {
return _heap->cancelled_gc();
}
@@ -335,8 +335,7 @@ class ShenandoahTerminatorTerminator : public TerminatorTerminator {
ShenandoahHeap* _heap;
public:
ShenandoahTerminatorTerminator(ShenandoahHeap* const heap) : _heap(heap) { }
// return true, terminates immediately, even if there's remaining work left
virtual bool should_exit_termination() { return _heap->cancelled_gc(); }
virtual bool should_exit_termination();
};

#endif // SHARE_GC_SHENANDOAH_SHENANDOAHTASKQUEUE_HPP

0 comments on commit 3ff8eff

Please sign in to comment.