diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-12-06 01:47:19 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-12-06 01:48:35 +0300 |
commit | 014b13c4e434209450366e3501d557a7a17847f9 (patch) | |
tree | 8ee7e74f286c16451ab938d0c39f15f837fbe585 /mark.c | |
parent | e6c51f613eea107850e90f1035182fa16afef05a (diff) | |
download | bdwgc-014b13c4e434209450366e3501d557a7a17847f9.tar.gz |
Do not use 'ifndef AO_CLEAR' in mark, pthread_support and gctest
(code refactoring of commits 272283d5b, d6c7ee31d, 2178db2b6)
* 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.
Diffstat (limited to 'mark.c')
-rw-r--r-- | mark.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ void GC_noop6(word arg1 GC_ATTR_UNUSED, word arg2 GC_ATTR_UNUSED, word arg5 GC_ATTR_UNUSED, word arg6 GC_ATTR_UNUSED) { /* Avoid GC_noop6 calls to be optimized away. */ -# if defined(AO_CLEAR) && !defined(BASE_ATOMIC_OPS_EMULATED) +# if defined(AO_HAVE_compiler_barrier) && !defined(BASE_ATOMIC_OPS_EMULATED) AO_compiler_barrier(); /* to serve as a special side-effect */ # else GC_noop1(0); |