]> granicus.if.org Git - gc/commit
Add AO primitives implementation to GC based on C11 atomic intrinsic
authorIvan Maidanski <ivmai@mail.ru>
Wed, 25 Jan 2017 09:16:56 +0000 (12:16 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 25 Jan 2017 09:16:56 +0000 (12:16 +0300)
commit46a24113022c25d4274c420412517fa1430d7672
tree296f7218348f33137f010140973d170ec883819a
parent1a45d7e1f487310750fdf22b8b7ce3fd1f94c8ed
Add AO primitives implementation to GC based on C11 atomic intrinsic

* Makefile.direct (SRCS): Add include/private/gc_atomic_ops.h.
* include/include.am (dist_noinst_HEADERS): Likewise.
* include/private/gc_atomic_ops.h: New file; define needed AO entities
if GC_BUILTIN_ATOMIC, otherwise include atomic_ops.h.
* include/private/gc_locks.h [THREADS && GC_PTHREADS
&& !GC_WIN32_THREADS]: Include gc_atomic_ops.h instead of atomic_ops.h.
* include/private/gc_priv.h [PARALLEL_MARK || THREADS && MPROTECT_VDB]:
Likewise.
* include/private/specific.h: Likewise.
* pthread_stop_world.c: Include private/gc_atomic_ops.h instead of
atomic_ops.h.
* tests/subthread_create.c: Likewise.
* thread_local_alloc.c [THREAD_LOCAL_ALLOC && GC_GCJ_SUPPORT]: Likewise.
* typd_mlc.c [GC_FORCE_INCLUDE_ATOMIC_OPS || GC_BUILTIN_ATOMIC]:
Likewise.
* win32_threads.c [GC_DLL && !GC_NO_THREADS_DISCOVERY && !MSWINCE]:
Likewise.
Makefile.direct
include/include.am
include/private/gc_atomic_ops.h [new file with mode: 0644]
include/private/gc_locks.h
include/private/gc_priv.h
include/private/specific.h
pthread_stop_world.c
tests/subthread_create.c
thread_local_alloc.c
typd_mlc.c
win32_threads.c