]> granicus.if.org Git - gc/commitdiff
Include atomic_ops.h if THREAD_LOCAL_ALLOC to enable GC_check_fl_marks
authorIvan Maidanski <ivmai@mail.ru>
Sat, 21 Apr 2012 09:45:49 +0000 (13:45 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 21 Apr 2012 09:45:49 +0000 (13:45 +0400)
* include/private/gc_priv.h: Include atomic_ops.h if GC_ASSERTIONS
and THREAD_LOCAL_ALLOC to make AO_load available to GC_check_fl_marks.

include/private/gc_priv.h

index 8287e030c6210d29130c520d57bce79992c79a20..5cfb5438ad5f50187838d8ad4334a72701e7712f 100644 (file)
@@ -832,7 +832,8 @@ typedef word page_hash_table[PHT_SIZE];
 # define counter_t volatile AO_t
 #else
   typedef size_t counter_t;
-# if defined(THREADS) && defined(MPROTECT_VDB)
+# if defined(THREADS) && (defined(MPROTECT_VDB) \
+                || (defined(GC_ASSERTIONS) && defined(THREAD_LOCAL_ALLOC)))
 #   include "atomic_ops.h"
 # endif
 #endif /* !PARALLEL_MARK */