Do not use 'ifndef AO_CLEAR' in mark, pthread_support and gctest
authorIvan Maidanski <ivmai@mail.ru>
Wed, 5 Dec 2018 22:47:19 +0000 (01:47 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 5 Dec 2018 22:48:35 +0000 (01:48 +0300)
commit014b13c4e434209450366e3501d557a7a17847f9
tree8ee7e74f286c16451ab938d0c39f15f837fbe585
parente6c51f613eea107850e90f1035182fa16afef05a
Do not use 'ifndef AO_CLEAR' in mark, pthread_support and gctest
(code refactoring of commits 272283d5bd6c7ee31d2178db2b6)

* include/private/gc_priv.h [THREADS && !NN_PLATFORM_CTR
&& !SN_TARGET_ORBIS && !SN_TARGET_PSP2 && !AO_HAVE_compiler_barrier]
(AO_HAVE_compiler_barrier): Define private macro (after include
gc_atomic_ops.h).
* mark.c [!BASE_ATOMIC_OPS_EMULATED] (GC_noop6): Call
AO_compiler_barrier() only if AO_HAVE_compiler_barrier.
* pthread_support.c [(USE_SPIN_LOCK || !NO_PTHREAD_TRYLOCK)
&& !BASE_ATOMIC_OPS_EMULATED] (GC_pause): Likewise.
* tests/test.c (AO_t): Define only if AO_HAVE_compiler_barrier is not
defined.
include/private/gc_priv.h
mark.c
pthread_support.c
tests/test.c