126 if (ref.is_narrow()) {
127 deal_with_reference((narrowOop*)ref);
128 } else {
129 deal_with_reference((oop*)ref);
130 }
131 }
132
133 void G1ParScanThreadState::steal_and_trim_queue(RefToScanQueueSet *task_queues) {
134 StarTask stolen_task;
135 while (task_queues->steal(_worker_id, &_hash_seed, stolen_task)) {
136 assert(verify_task(stolen_task), "sanity");
137 dispatch_reference(stolen_task);
138
139 // We've just processed a reference and we might have made
140 // available new entries on the queues. So we have to make sure
141 // we drain the queues as necessary.
142 trim_queue();
143 }
144 }
145
146 #endif /* SHARE_VM_GC_G1_G1PARSCANTHREADSTATE_INLINE_HPP */
147
|
126 if (ref.is_narrow()) {
127 deal_with_reference((narrowOop*)ref);
128 } else {
129 deal_with_reference((oop*)ref);
130 }
131 }
132
133 void G1ParScanThreadState::steal_and_trim_queue(RefToScanQueueSet *task_queues) {
134 StarTask stolen_task;
135 while (task_queues->steal(_worker_id, &_hash_seed, stolen_task)) {
136 assert(verify_task(stolen_task), "sanity");
137 dispatch_reference(stolen_task);
138
139 // We've just processed a reference and we might have made
140 // available new entries on the queues. So we have to make sure
141 // we drain the queues as necessary.
142 trim_queue();
143 }
144 }
145
146 #endif // SHARE_VM_GC_G1_G1PARSCANTHREADSTATE_INLINE_HPP
147
|