]> 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, 12 Dec 2016 23:34:28 +0000 (02:34 +0300)
commite3ec4a52112a5dbd14bc2d612eb38d4040a8773e
treefdd56fcba1949c90dd51fabac100d3962f925870
parentb7dc8d4a09f13879eb41b83ef8d1f2df1e981c6a
Fix GC_noop6 definition to avoid its calls to be optimized away

* 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 available, otherwise call GC_noop1(0); add
comment.
include/private/gc_priv.h
mark.c