[m-rev.] diff: fix broken install_libgrades on non-Linux systems
Julien Fischer
jfischer at opturion.com
Tue Jul 1 23:55:28 AEST 2014
Branches: master, 14.01
Fix a problem that broke install_libgrades on non-Linux systems.
boehm_gc/misc.c:
GC_setup_mark_lock is only defined if the macro PARALLEL_MARK.
is defined. Add the appropriate #ifdef for this.
Julien.
diff --git a/boehm_gc/misc.c b/boehm_gc/misc.c
index 1b65243..ae34a9a 100644
--- a/boehm_gc/misc.c
+++ b/boehm_gc/misc.c
@@ -744,9 +744,11 @@ GC_API void GC_CALL GC_init(void)
/* else */ InitializeCriticalSection (&GC_allocate_ml);
}
# endif /* GC_WIN32_THREADS */
-# if (defined(GC_PTHREADS) && !defined(GC_WIN32_THREADS))
- GC_setup_mark_lock();
-# endif /* GC_PTHREADS */
+# ifdef PARALLEL_MARK
+# if (defined(GC_PTHREADS) && !defined(GC_WIN32_THREADS))
+ GC_setup_mark_lock();
+# endif /* GC_PTHREADS */
+# endif /* PARALLEL_MARK */
# if (defined(MSWIN32) || defined(MSWINCE)) && defined(THREADS)
InitializeCriticalSection(&GC_write_cs);
# endif
More information about the reviews
mailing list