changeset 58307:598ac6de2237

8220503: Move ShenandoahTerminatorTerminator::should_exit_termination out of header Reviewed-by: rkennke Contributed-by: adityam@microsoft.com
author rkennke
date Mon, 09 Mar 2020 12:29:13 +0100
parents 8d1e70f7f279
children 8a14919d365d
files src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.cpp src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.cpp	Thu Mar 05 15:56:49 2020 +0100
+++ b/src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.cpp	Mon Mar 09 12:29:13 2020 +0100
@@ -88,3 +88,7 @@
   }
 }
 #endif // TASKQUEUE_STATS
+
+bool ShenandoahTerminatorTerminator::should_exit_termination() {
+  return _heap->cancelled_gc();
+}
--- a/src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp	Thu Mar 05 15:56:49 2020 +0100
+++ b/src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp	Mon Mar 09 12:29:13 2020 +0100
@@ -335,8 +335,7 @@
   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