Skip to content
Permalink
Browse files

8241068: Shenandoah: improve ShenandoahTraversalGC constructor arguments

Reviewed-by: shade
  • Loading branch information
kdnilsen authored and shipilev committed Mar 23, 2020
1 parent 9010293 commit ed28a274902d860fee02d547ba482c1bfb3691d6
@@ -368,7 +368,7 @@ jint ShenandoahHeap::initialize() {
}

_traversal_gc = strcmp(ShenandoahGCMode, "traversal") == 0 ?
new ShenandoahTraversalGC(this, _num_regions) :
new ShenandoahTraversalGC(this) :
NULL;

_control_thread = new ShenandoahControlThread();
@@ -291,7 +291,7 @@ class ShenandoahFinalTraversalCollectionTask : public AbstractGangTask {
}
};

ShenandoahTraversalGC::ShenandoahTraversalGC(ShenandoahHeap* heap, size_t num_regions) :
ShenandoahTraversalGC::ShenandoahTraversalGC(ShenandoahHeap* heap) :
_heap(heap),
_task_queues(new ShenandoahObjToScanQueueSet(heap->max_workers())),
_traversal_set(ShenandoahHeapRegionSet()) {
@@ -39,7 +39,7 @@ class ShenandoahTraversalGC : public CHeapObj<mtGC> {
ShenandoahHeapRegionSet _traversal_set;

public:
ShenandoahTraversalGC(ShenandoahHeap* heap, size_t num_regions);
ShenandoahTraversalGC(ShenandoahHeap* heap);
~ShenandoahTraversalGC();

ShenandoahHeapRegionSet* traversal_set() { return &_traversal_set; }

0 comments on commit ed28a27

Please sign in to comment.