changeset 60602:d2d076a7dfc4

8241068: Shenandoah: improve ShenandoahTraversalGC constructor arguments Reviewed-by: shade Contributed-by: Kelvin Nilsen <kdnilsen@amazon.com>
author shade
date Mon, 23 Mar 2020 10:37:44 +0100
parents f81815820cd5
children 973301ba95bb
files src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.cpp src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.hpp
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp	Mon Mar 23 10:29:04 2020 +0100
+++ b/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp	Mon Mar 23 10:37:44 2020 +0100
@@ -368,7 +368,7 @@
   }
 
   _traversal_gc = strcmp(ShenandoahGCMode, "traversal") == 0 ?
-                  new ShenandoahTraversalGC(this, _num_regions) :
+                  new ShenandoahTraversalGC(this) :
                   NULL;
 
   _control_thread = new ShenandoahControlThread();
--- a/src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.cpp	Mon Mar 23 10:29:04 2020 +0100
+++ b/src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.cpp	Mon Mar 23 10:37:44 2020 +0100
@@ -291,7 +291,7 @@
   }
 };
 
-ShenandoahTraversalGC::ShenandoahTraversalGC(ShenandoahHeap* heap, size_t num_regions) :
+ShenandoahTraversalGC::ShenandoahTraversalGC(ShenandoahHeap* heap) :
   _heap(heap),
   _task_queues(new ShenandoahObjToScanQueueSet(heap->max_workers())),
   _traversal_set(ShenandoahHeapRegionSet()) {
--- a/src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.hpp	Mon Mar 23 10:29:04 2020 +0100
+++ b/src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.hpp	Mon Mar 23 10:37:44 2020 +0100
@@ -39,7 +39,7 @@
   ShenandoahHeapRegionSet _traversal_set;
 
 public:
-  ShenandoahTraversalGC(ShenandoahHeap* heap, size_t num_regions);
+  ShenandoahTraversalGC(ShenandoahHeap* heap);
   ~ShenandoahTraversalGC();
 
   ShenandoahHeapRegionSet* traversal_set() { return &_traversal_set; }