From: Ivan Maidanski Date: Sat, 21 Apr 2012 09:45:49 +0000 (+0400) Subject: Include atomic_ops.h if THREAD_LOCAL_ALLOC to enable GC_check_fl_marks X-Git-Tag: gc7_3alpha2~7^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92da43f0a4725ce2a3b3b260dbd2f420ac9c1b25;p=gc Include atomic_ops.h if THREAD_LOCAL_ALLOC to enable GC_check_fl_marks * 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. --- diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 8287e030..5cfb5438 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -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 */