]> granicus.if.org Git - gc/commitdiff
Report inconsistent configuration if PARALLEL_MARK but no THREADS
authorIvan Maidanski <ivmai@mail.ru>
Fri, 10 Feb 2012 04:29:12 +0000 (08:29 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 10 Feb 2012 07:02:06 +0000 (11:02 +0400)
* include/private/gcconfig.h (PARALLEL_MARK): Add an explicit check
for THREADS to be defined if PARALLEL_MARK is defined.

include/private/gcconfig.h

index 9bb29e3b5c27383746e89296ee0eac85f69798c3..1a6436c621c8607cfc3ade527e797a42eb128bfc 100644 (file)
 # define THREADS
 #endif
 
+#if defined(PARALLEL_MARK) && !defined(THREADS)
+# error "invalid config - PARALLEL_MARK requires GC_THREADS"
+#endif
+
 #if defined(UNIX_LIKE) && defined(THREADS) && !defined(NO_CANCEL_SAFE) \
     && !defined(PLATFORM_ANDROID)
   /* Make the code cancellation-safe.  This basically means that we     */