src/share/vm/gc_implementation/g1/concurrentG1RefineThread.cpp

changeset 1318
27f6a9b9c311
parent 1230
215f81b4d9b3
child 1320
7f807f55161a
     1.1 --- a/src/share/vm/gc_implementation/g1/concurrentG1RefineThread.cpp	Fri Jul 24 12:49:31 2009 -0700
     1.2 +++ b/src/share/vm/gc_implementation/g1/concurrentG1RefineThread.cpp	Wed Jul 29 11:01:26 2009 -0400
     1.3 @@ -104,17 +104,17 @@
     1.4      double start_vtime_sec; // only used when G1SmoothConcRefine is on
     1.5      int prev_buffer_num; // only used when G1SmoothConcRefine is on
     1.6      // This thread activation threshold
     1.7 -    int threshold = DCQBarrierProcessCompletedThreshold * _worker_id;
     1.8 +    int threshold = G1UpdateBufferQueueProcessingThreshold * _worker_id;
     1.9      // Next thread activation threshold
    1.10 -    int next_threshold = threshold + DCQBarrierProcessCompletedThreshold;
    1.11 -    int deactivation_threshold = MAX2<int>(threshold - DCQBarrierProcessCompletedThreshold / 2, 0);
    1.12 +    int next_threshold = threshold + G1UpdateBufferQueueProcessingThreshold;
    1.13 +    int deactivation_threshold = MAX2<int>(threshold - G1UpdateBufferQueueProcessingThreshold / 2, 0);
    1.14  
    1.15      if (G1SmoothConcRefine) {
    1.16        lower_limit = 0;
    1.17        start_vtime_sec = os::elapsedVTime();
    1.18        prev_buffer_num = (int) dcqs.completed_buffers_num();
    1.19      } else {
    1.20 -      lower_limit = DCQBarrierProcessCompletedThreshold / 4; // For now.
    1.21 +      lower_limit = G1UpdateBufferQueueProcessingThreshold / 4; // For now.
    1.22      }
    1.23      while (dcqs.apply_closure_to_completed_buffer(_worker_id + _worker_id_offset, lower_limit)) {
    1.24        double end_vtime_sec;

mercurial