< prev index next >

src/share/vm/gc/g1/g1ParScanThreadState.inline.hpp

Print this page
rev 8796 : imported patch 8133047-rename-g1parscanthreadstate-queue-num-to-worker-id

@@ -54,11 +54,11 @@
     assert(!in_cset_state.is_in_cset_or_humongous(),
            err_msg("In_cset_state must be NotInCSet here, but is " CSETSTATE_FORMAT, in_cset_state.value()));
   }
 
   assert(obj != NULL, "Must be");
-  update_rs(from, p, queue_num());
+  update_rs(from, p, _worker_id);
 }
 
 template <class T> inline void G1ParScanThreadState::push_on_queue(T* ref) {
   assert(verify_ref(ref), "sanity");
   _refs->push(ref);

@@ -134,11 +134,11 @@
   }
 }
 
 void G1ParScanThreadState::steal_and_trim_queue(RefToScanQueueSet *task_queues) {
   StarTask stolen_task;
-  while (task_queues->steal(queue_num(), hash_seed(), stolen_task)) {
+  while (task_queues->steal(_worker_id, &_hash_seed, stolen_task)) {
     assert(verify_task(stolen_task), "sanity");
     dispatch_reference(stolen_task);
 
     // We've just processed a reference and we might have made
     // available new entries on the queues. So we have to make sure
< prev index next >