diff -r b553ad95acf0 -r baa4dd528de0 src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp --- a/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp Mon Sep 09 12:42:01 2019 -0700 +++ b/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp Mon Sep 09 16:54:48 2019 -0400 @@ -343,11 +343,13 @@ Copy::fill_to_bytes(_liveness_cache[worker], _num_regions * sizeof(jushort)); } - // The call below uses stuff (the SATB* things) that are in G1, but probably - // belong into a shared location. - ShenandoahBarrierSet::satb_mark_queue_set().initialize(this, - 20 /* G1SATBProcessCompletedThreshold */, - 60 /* G1SATBBufferEnqueueingThresholdPercent */); + // There should probably be Shenandoah-specific options for these, + // just as there are G1-specific options. + { + ShenandoahSATBMarkQueueSet& satbqs = ShenandoahBarrierSet::satb_mark_queue_set(); + satbqs.set_process_completed_buffers_threshold(20); // G1SATBProcessCompletedThreshold + satbqs.set_buffer_enqueue_threshold_percentage(60); // G1SATBBufferEnqueueingThresholdPercent + } _monitoring_support = new ShenandoahMonitoringSupport(this); _phase_timings = new ShenandoahPhaseTimings();