Home
last modified time | relevance | path

Searched refs:mono_atomic_cas_ptr (Results 1 – 24 of 24) sorted by relevance

/dports/lang/mono/mono-5.10.1.57/mono/utils/
H A Dlock-free-queue.c159 if (mono_atomic_cas_ptr ((gpointer volatile*)&tail->next, node, END_MARKER) == END_MARKER) in mono_lock_free_queue_enqueue()
163 mono_atomic_cas_ptr ((gpointer volatile*)&q->tail, next, tail); in mono_lock_free_queue_enqueue()
172 mono_atomic_cas_ptr ((gpointer volatile*)&q->tail, node, tail); in mono_lock_free_queue_enqueue()
278 mono_atomic_cas_ptr ((gpointer volatile*)&q->tail, next, tail); in mono_lock_free_queue_dequeue()
282 if (mono_atomic_cas_ptr ((gpointer volatile*)&q->head, next, head) == head) in mono_lock_free_queue_dequeue()
H A Dmono-linked-list-set.c118 if (mono_atomic_cas_ptr ((volatile gpointer*)prev, next, cur) == cur) { in mono_lls_find()
156 if (mono_atomic_cas_ptr ((volatile gpointer*)prev, value, cur) == cur) in mono_lls_insert()
180 if (mono_atomic_cas_ptr ((volatile gpointer*)&cur->next, mask (next, 1), next) != next) in mono_lls_remove()
184 if (mono_atomic_cas_ptr ((volatile gpointer*)prev, mono_lls_pointer_unmask (next), cur) == cur) { in mono_lls_remove()
H A Dlock-free-alloc.c177 success = (mono_atomic_cas_ptr ((volatile gpointer *)&desc_avail, next, desc) == desc); in desc_alloc()
196 success = (mono_atomic_cas_ptr ((volatile gpointer *)&desc_avail, desc->next, NULL) == NULL); in desc_alloc()
227 } while (mono_atomic_cas_ptr ((volatile gpointer *)&desc_avail, desc, old_head) != old_head); in desc_enqueue_avail()
346 if (mono_atomic_cas_ptr ((volatile gpointer *)&heap->active, NULL, desc) != desc) in alloc_from_active_or_partial()
383 if (mono_atomic_cas_ptr ((volatile gpointer *)&heap->active, desc, NULL) != NULL) in alloc_from_active_or_partial()
423 if (mono_atomic_cas_ptr ((volatile gpointer *)&heap->active, desc, NULL) == NULL) { in alloc_from_new_sb()
482 if (mono_atomic_cas_ptr ((volatile gpointer *)&heap->active, NULL, desc) == desc) { in mono_lock_free_free()
491 if (mono_atomic_cas_ptr ((volatile gpointer *)&heap->active, desc, NULL) != NULL) in mono_lock_free_free()
510 if (mono_atomic_cas_ptr ((volatile gpointer *)&desc->heap->active, desc, NULL) != NULL) in mono_lock_free_free()
H A Datomic.h47 mono_atomic_cas_ptr (volatile gpointer *dest, gpointer exch, gpointer comp) in mono_atomic_cas_ptr() function
248 static inline gpointer mono_atomic_cas_ptr(volatile gpointer *dest, gpointer exch, gpointer comp) in mono_atomic_cas_ptr() function
430 return mono_atomic_cas_ptr (src, NULL, NULL); in mono_atomic_load_ptr()
461 extern gpointer mono_atomic_cas_ptr(volatile gpointer *dest, gpointer exch, gpointer comp);
H A Dlock-free-array-queue.c71 if (mono_atomic_cas_ptr ((volatile gpointer *)&arr->chunk_list, chunk, NULL) != NULL) in mono_lock_free_array_nth()
83 if (mono_atomic_cas_ptr ((volatile gpointer *) &chunk->next, next, NULL) != NULL) { in mono_lock_free_array_nth()
H A Dmono-linked-list-set.h151 if (mono_atomic_cas_ptr ((volatile gpointer *) prev__, next__, cur__) == cur__) { \
H A Dmono-threads.c1462 …previous_token = (MonoThreadInfoInterruptToken *)mono_atomic_cas_ptr ((gpointer*) &info->interrupt… in mono_thread_info_install_interrupt()
1525 …} while (mono_atomic_cas_ptr ((gpointer*) &info->interrupt_token, INTERRUPT_STATE, previous_token)… in set_interrupt_state()
1598 …previous_token = (MonoThreadInfoInterruptToken *)mono_atomic_cas_ptr ((gpointer*) &info->interrupt… in mono_thread_info_clear_self_interrupt()
H A Datomic.c54 gpointer mono_atomic_cas_ptr(volatile gpointer *dest, in mono_atomic_cas_ptr() function
/dports/lang/mono/mono-5.10.1.57/mono/sgen/
H A Dsgen-array-list.c49 …if (mono_atomic_cas_ptr ((volatile gpointer *)&array->entries [new_bucket], entries, NULL) == NULL… in sgen_array_list_grow()
199 if (mono_atomic_cas_ptr (slot, ptr, NULL) == NULL) in sgen_array_list_default_cas_setter()
H A Dsgen-nursery-allocator.c325 if (mono_atomic_cas_ptr ((volatile gpointer*)prev, next, cur) != cur) in find_previous_pointer_fragment()
344 …return mono_atomic_cas_ptr ((volatile gpointer*)&frag->fragment_next, frag->fragment_end, alloc_en… in claim_remaining_size()
359 if (mono_atomic_cas_ptr ((volatile gpointer*)&frag->fragment_next, end, p) != p) in par_alloc_from_fragment()
393 if (mono_atomic_cas_ptr ((volatile gpointer*)&frag->next, mask (next, 1), next) != next) { in par_alloc_from_fragment()
402 if (mono_atomic_cas_ptr ((volatile gpointer*)prev_ptr, unmask (next), frag) != frag) { in par_alloc_from_fragment()
H A Dsgen-gc.h93 #define SGEN_CAS_PTR mono_atomic_cas_ptr
104 …} while (mono_atomic_cas_ptr ((void**)&(x), (void*)(__old_x + (i)), (void*)__old_x) != (void*)__ol…
264 old_vtable_word = mono_atomic_cas_ptr ((gpointer*)obj, new_vtable_word, old_vtable_word); \
H A Dsgen-pinning.c336 old_obj = mono_atomic_cas_ptr ((gpointer*)&hash [i].obj, obj, NULL); in sgen_cement_lookup_or_register()
H A Dsgen-gchandles.c68 if (mono_atomic_cas_ptr (slot, new_, old) == old) { in try_set_slot()
H A Dsgen-protocol.c331 if (mono_atomic_cas_ptr ((void**)&binary_protocol_buffers, new_buffer, buffer) != buffer) { in binary_protocol_get_buffer()
/dports/lang/mono/mono-5.10.1.57/mono/metadata/
H A Dmonitor.c500 …tmp_lw.sync = (MonoThreadsSync *)mono_atomic_cas_ptr ((gpointer*)&obj->synchronisation, nlw.sync, … in mono_monitor_inflate_owned()
543 …tmp_lw.sync = (MonoThreadsSync *)mono_atomic_cas_ptr ((gpointer*)&obj->synchronisation, nlw.sync, … in mono_monitor_inflate()
599 …old_lw.sync = (MonoThreadsSync *)mono_atomic_cas_ptr ((gpointer*)&obj->synchronisation, lw.sync, N… in mono_object_hash()
715 …tmp_lw.sync = (MonoThreadsSync *)mono_atomic_cas_ptr ((gpointer*)&obj->synchronisation, new_lw.syn… in mono_monitor_exit_flat()
847 if (mono_atomic_cas_ptr ((gpointer*)&mon->entry_sem, sem, NULL) != NULL) { in mono_monitor_try_enter_inflated()
980 if (mono_atomic_cas_ptr ((gpointer*)&obj->synchronisation, nlw.sync, NULL) == NULL) { in mono_monitor_try_enter_internal()
997 …old_lw.sync = (MonoThreadsSync *)mono_atomic_cas_ptr ((gpointer*)&obj->synchronisation, nlw.sync, … in mono_monitor_try_enter_internal()
H A Dproperty-bag.c54 if (mono_atomic_cas_ptr ((void*)prev, item, cur) == cur) in mono_property_bag_add()
H A Dthreads.c263 …} while (mono_atomic_cas_ptr ((volatile gpointer *)&thread->thread_state, (gpointer)new_state, (gp… in mono_threads_begin_abort_protected_block()
305 …} while (mono_atomic_cas_ptr ((volatile gpointer *)&thread->thread_state, (gpointer)new_state, (gp… in mono_threads_end_abort_protected_block()
345 …} while (mono_atomic_cas_ptr ((volatile gpointer *)&thread->thread_state, (gpointer)new_state, (gp… in mono_thread_clear_interruption_requested()
373 …} while (mono_atomic_cas_ptr ((volatile gpointer *)&thread->thread_state, (gpointer)new_state, (gp… in mono_thread_set_interruption_requested()
403 if (mono_atomic_cas_ptr ((gpointer *)&thread->synch_cs, in ensure_synch_cs_set()
1375 mono_atomic_cas_ptr ((volatile gpointer *)&this_obj->internal_thread, internal, NULL); in ves_icall_System_Threading_Thread_ConstructInternalThread()
2098 res = (MonoObject *) mono_atomic_cas_ptr((gpointer *) location, value, comparand); in ves_icall_System_Threading_Interlocked_CompareExchange_Object()
2105 return mono_atomic_cas_ptr(location, value, comparand); in ves_icall_System_Threading_Interlocked_CompareExchange_IntPtr()
2127 …ret.ival = (gint64)mono_atomic_cas_ptr((gpointer *) location, (gpointer)val.ival, (gpointer)comp.i… in ves_icall_System_Threading_Interlocked_CompareExchange_Double()
2164 res = (MonoObject *)mono_atomic_cas_ptr ((volatile gpointer *)location, value, comparand); in ves_icall_System_Threading_Interlocked_CompareExchange_T()
H A Dgc.c1078 …} while (prev && mono_atomic_cas_ptr ((volatile gpointer *)prev, element->next, element) != elemen… in ref_list_remove_element()
1089 } while (mono_atomic_cas_ptr ((volatile gpointer *)head, value, current) != current); in ref_list_push()
H A Dprofiler.c846 } while (mono_atomic_cas_ptr (location, new_, old) != old); in update_callback()
H A Ddomain.c170 if (mono_atomic_cas_ptr ((volatile gpointer*)&mp->chunks, chunk, prev) == prev) in lock_free_mempool_chunk_new()
H A Dmarshal.c9251 if (mono_atomic_cas_ptr ((volatile gpointer *)&cached, res, NULL)) { in mono_marshal_get_castclass_with_cache()
9335 if (mono_atomic_cas_ptr ((volatile gpointer *)&cached, res, NULL)) { in mono_marshal_get_isinst_with_cache()
H A Dmetadata.c3452 …MonoGenericContainer *exchange = (MonoGenericContainer *)mono_atomic_cas_ptr ((volatile gpointer *… in get_anonymous_container_for_image()
/dports/lang/mono/mono-5.10.1.57/mono/mini/
H A Daot-runtime.c3394 if (mono_atomic_cas_ptr ((gpointer*)&amodule->sorted_methods, methods, NULL) != NULL) in mono_aot_find_jit_info()
3397 …if (mono_atomic_cas_ptr ((gpointer*)&amodule->sorted_method_indexes, method_indexes, NULL) != NULL) in mono_aot_find_jit_info()
3546 …if (mono_atomic_cas_ptr ((volatile gpointer *)&amodule->async_jit_info_table, new_table, old_table… in mono_aot_find_jit_info()
H A Dmini-amd64.c1421 mono_atomic_cas_ptr ((gpointer*)&r, regs, NULL); in mono_arch_get_iregs_clobbered_by_call()
1439 mono_atomic_cas_ptr ((gpointer*)&r, regs, NULL); in mono_arch_get_fregs_clobbered_by_call()