(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.
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
# define set_pht_entry_from_index_concurrent(bl, index) \
AO_or((volatile AO_t *)&(bl)[divWORDSZ(index)], \
(AO_t)((word)1 << modWORDSZ(index)))
+#else
+# define set_pht_entry_from_index_concurrent(bl, index) \
+ set_pht_entry_from_index(bl, index)
#endif
/* protected by GC_write_cs. */
# endif
-# if defined(GC_DISABLE_INCREMENTAL) \
- || defined(set_pht_entry_from_index_concurrent)
+# if defined(GC_DISABLE_INCREMENTAL) || defined(AO_HAVE_or)
# define GC_acquire_dirty_lock() (void)0
# define GC_release_dirty_lock() (void)0
# else
#endif /* DEFAULT_VDB */
#ifndef GC_DISABLE_INCREMENTAL
-# ifndef THREADS
-# define async_set_pht_entry_from_index(db, index) \
- set_pht_entry_from_index(db, index)
-# elif defined(set_pht_entry_from_index_concurrent)
+# if !defined(THREADS) || defined(AO_HAVE_or)
# define async_set_pht_entry_from_index(db, index) \
set_pht_entry_from_index_concurrent(db, index)
# elif defined(AO_HAVE_test_and_set_acquire)