< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp

Print this page
rev 56194 : imported patch shenandoah

*** 341,355 **** for (uint worker = 0; worker < _max_workers; worker++) { _liveness_cache[worker] = NEW_C_HEAP_ARRAY(jushort, _num_regions, mtGC); 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 */); _monitoring_support = new ShenandoahMonitoringSupport(this); _phase_timings = new ShenandoahPhaseTimings(); ShenandoahStringDedup::initialize(); ShenandoahCodeRoots::initialize(); --- 341,357 ---- for (uint worker = 0; worker < _max_workers; worker++) { _liveness_cache[worker] = NEW_C_HEAP_ARRAY(jushort, _num_regions, mtGC); Copy::fill_to_bytes(_liveness_cache[worker], _num_regions * sizeof(jushort)); } ! // 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(); ShenandoahStringDedup::initialize(); ShenandoahCodeRoots::initialize();
< prev index next >