diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-11-09 10:14:09 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-11-09 10:14:09 +0300 |
commit | ae06939a1f81cbac127f849697fca511cfe9024e (patch) | |
tree | c1401b2ce8b709f4e0c9db5dd3cebeddb88f1c99 /blacklst.c | |
parent | 4d9121976da7cf9c54f8cb4e9901ee5b0e5206f3 (diff) | |
download | bdwgc-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |