< prev index next >

src/hotspot/share/gc/g1/g1ConcurrentRefineThread.cpp

Print this page
rev 47675 : [mq]: 8149127-rename-concurrentrefine-a
rev 47676 : imported patch 8149127-rename-concurrentrefine-b
rev 47677 : [mq]: 8149127-rename-concurrentrefine-b-stefanj-review

@@ -31,11 +31,11 @@
 #include "logging/log.hpp"
 #include "memory/resourceArea.hpp"
 #include "runtime/handles.inline.hpp"
 #include "runtime/mutexLocker.hpp"
 
-G1ConcurrentRefineThread::G1ConcurrentRefineThread(G1ConcurrentRefine* cg1r,
+G1ConcurrentRefineThread::G1ConcurrentRefineThread(G1ConcurrentRefine* cr,
                                                    G1ConcurrentRefineThread *next,
                                                    uint worker_id_offset,
                                                    uint worker_id,
                                                    size_t activate,
                                                    size_t deactivate) :

@@ -43,11 +43,11 @@
   _worker_id_offset(worker_id_offset),
   _worker_id(worker_id),
   _active(false),
   _next(next),
   _monitor(NULL),
-  _cg1r(cg1r),
+  _cr(cr),
   _vtime_accum(0.0),
   _activation_threshold(activate),
   _deactivation_threshold(deactivate)
 {
 

@@ -132,11 +132,11 @@
         }
 
         size_t curr_buffer_num = dcqs.completed_buffers_num();
         // If the number of the buffers falls down into the yellow zone,
         // that means that the transition period after the evacuation pause has ended.
-        if (dcqs.completed_queue_padding() > 0 && curr_buffer_num <= cg1r()->yellow_zone()) {
+        if (dcqs.completed_queue_padding() > 0 && curr_buffer_num <= cr()->yellow_zone()) {
           dcqs.set_completed_queue_padding(0);
         }
 
         // Check if we need to activate the next thread.
         if ((_next != NULL) &&
< prev index next >