/dports/lang/mono/mono-5.10.1.57/mono/utils/ |
H A D | lock-free-queue.c | 159 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 D | mono-linked-list-set.c | 118 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 D | lock-free-alloc.c | 177 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 D | atomic.h | 47 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 D | lock-free-array-queue.c | 71 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 D | mono-linked-list-set.h | 151 if (mono_atomic_cas_ptr ((volatile gpointer *) prev__, next__, cur__) == cur__) { \
|
H A D | mono-threads.c | 1462 …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 D | atomic.c | 54 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 D | sgen-array-list.c | 49 …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 D | sgen-nursery-allocator.c | 325 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 D | sgen-gc.h | 93 #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 D | sgen-pinning.c | 336 old_obj = mono_atomic_cas_ptr ((gpointer*)&hash [i].obj, obj, NULL); in sgen_cement_lookup_or_register()
|
H A D | sgen-gchandles.c | 68 if (mono_atomic_cas_ptr (slot, new_, old) == old) { in try_set_slot()
|
H A D | sgen-protocol.c | 331 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 D | monitor.c | 500 …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 D | property-bag.c | 54 if (mono_atomic_cas_ptr ((void*)prev, item, cur) == cur) in mono_property_bag_add()
|
H A D | threads.c | 263 …} 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 D | gc.c | 1078 …} 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 D | profiler.c | 846 } while (mono_atomic_cas_ptr (location, new_, old) != old); in update_callback()
|
H A D | domain.c | 170 if (mono_atomic_cas_ptr ((volatile gpointer*)&mp->chunks, chunk, prev) == prev) in lock_free_mempool_chunk_new()
|
H A D | marshal.c | 9251 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 D | metadata.c | 3452 …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 D | aot-runtime.c | 3394 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 D | mini-amd64.c | 1421 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()
|