Lines Matching refs:cur_head

215   MemRecorder* volatile cur_head = _pooled_recorders;
216 if (cur_head != NULL) {
218 while (cur_head != NULL && (void*)cur_head != Atomic::cmpxchg_ptr((void*)null_ptr,
219 (void*)&_pooled_recorders, (void*)cur_head)) {
220 cur_head = _pooled_recorders;
222 if (cur_head != NULL) {
223 delete cur_head;
273 MemRecorder* cur_head = const_cast<MemRecorder*> (_pooled_recorders);
274 if (cur_head == NULL) {
285 MemRecorder* next_head = cur_head->next();
286 if ((void*)cur_head != Atomic::cmpxchg_ptr((void*)next_head, (void*)&_pooled_recorders,
287 (void*)cur_head)) {
290 cur_head->set_next(NULL);
292 cur_head->set_generation();
293 return cur_head;
301 MemRecorder* cur_head = const_cast<MemRecorder*>(_merge_pending_queue);
303 while ((void*)cur_head != Atomic::cmpxchg_ptr((void*)null_ptr, (void*)&_merge_pending_queue,
304 (void*)cur_head)) {
305 cur_head = const_cast<MemRecorder*>(_merge_pending_queue);
308 return cur_head;
324 MemRecorder* cur_head = const_cast<MemRecorder*>(_pooled_recorders);
325 rec->set_next(cur_head);
326 while ((void*)cur_head != Atomic::cmpxchg_ptr((void*)rec, (void*)&_pooled_recorders,
327 (void*)cur_head)) {
328 cur_head = const_cast<MemRecorder*>(_pooled_recorders);
329 rec->set_next(cur_head);
358 MemRecorder* cur_head = const_cast<MemRecorder*>(_merge_pending_queue);
359 rec->set_next(cur_head);
360 while ((void*)cur_head != Atomic::cmpxchg_ptr((void*)rec, (void*)&_merge_pending_queue,
361 (void*)cur_head)) {
362 cur_head = const_cast<MemRecorder*>(_merge_pending_queue);
363 rec->set_next(cur_head);