]> granicus.if.org Git - gc/commit
Fix GC_noop6 definition to avoid its calls to be optimized away
authorIvan Maidanski <ivmai@mail.ru>
Mon, 12 Dec 2016 23:34:28 +0000 (02:34 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 6 Feb 2017 18:51:01 +0000 (21:51 +0300)
commit7226ce4ed4d7696d5b0cae748f68635b668f7091
treeeaf4cb3cc984b59635aba2f720654085be204264
parent6ad59405266c12b5e5d694ade4f4a450f9ccec0e
Fix GC_noop6 definition to avoid its calls to be optimized away
(fix commits e3ec4a51586a21)

* include/private/gc_priv.h (GC_ATTR_NOINLINE): New macro (effective
for GCC/Clang and MS VC currently).
* mark.c (GC_noop6): Use GC_ATTR_NOINLINE attribute; call
AO_compiler_barrier if PARALLEL_MARK (or GC_PTHREADS and not
GC_WIN32_THREADS), otherwise call GC_noop1(0); add
comment.
include/private/gc_priv.h
mark.c