summaryrefslogtreecommitdiff
path: root/blacklst.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-11-09 10:14:09 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-11-09 10:14:09 +0300
commitae06939a1f81cbac127f849697fca511cfe9024e (patch)
treec1401b2ce8b709f4e0c9db5dd3cebeddb88f1c99 /blacklst.c
parent4d9121976da7cf9c54f8cb4e9901ee5b0e5206f3 (diff)
downloadbdwgc-ae06939a1f81cbac127f849697fca511cfe9024e.tar.gz
Fix 'set_pht_entry_from_index_concurrent value is unknown' cppcheck warning
(fix of commit cdc201f40) * blacklst.c [PARALLEL_MARK && THREAD_SANITIZER] (backlist_set_pht_entry_from_index): Assume set_pht_entry_from_index_concurrent is always defined. * include/private/gc_priv.h [!THREADS || !AO_HAVE_or] (set_pht_entry_from_index_concurrent): Define (to set_pht_entry_from_index). * include/private/gc_priv.h [THREADS && AO_HAVE_or] (GC_acquire_dirty_lock, GC_release_dirty_lock): Define to empty. * os_dep.c [!GC_DISABLE_INCREMENTAL && (!THREADS || AO_HAVE_or)] (async_set_pht_entry_from_index): Define to set_pht_entry_from_index_concurrent.
Diffstat (limited to 'blacklst.c')
-rw-r--r--blacklst.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/blacklst.c b/blacklst.c
index 31511ae1..45d1ef40 100644
--- a/blacklst.c
+++ b/blacklst.c
@@ -175,8 +175,7 @@ GC_INNER void GC_unpromote_black_lists(void)
GC_copy_bl(GC_old_stack_bl, GC_incomplete_stack_bl);
}
-#if defined(set_pht_entry_from_index_concurrent) && defined(PARALLEL_MARK) \
- && defined(THREAD_SANITIZER)
+#if defined(PARALLEL_MARK) && defined(THREAD_SANITIZER)
# define backlist_set_pht_entry_from_index(db, index) \
set_pht_entry_from_index_concurrent(db, index)
#else