[m-rev.] diff: Enable parallel marking on Windows again.

Peter Wang novalazy at gmail.com
Fri Oct 7 17:13:19 AEDT 2016


We can enable parallel marking on Windows again after the recent upgrade
to Boehm GC that includes a workaround for deadlocks occurring with
winpthreads: see https://github.com/ivmai/bdwgc/issues/81

configure.ac:
    As above.
---
 configure.ac | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index af4f6fc..18568ad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3181,8 +3181,7 @@ case "$host" in
                 CFLAGS_FOR_THREADS="$WIN32_GC_THREADLIB"
                 BOEHM_CFLAGS_FOR_THREADS="-DGC_THREADS $WIN32_GC_THREADLIB"
                 ENABLE_BOEHM_THREAD_LOCAL_ALLOC="-DTHREAD_LOCAL_ALLOC"
-                # Parallel marking on Windows seems unreliable.
-                # ENABLE_BOEHM_PARALLEL_MARK="-DPARALLEL_MARK"
+                ENABLE_BOEHM_PARALLEL_MARK="-DPARALLEL_MARK"
                 ;;
         esac
         # avoid_sbrk?
@@ -3215,8 +3214,7 @@ case "$host" in
                     THREAD_LIBS=
                 fi
                 ENABLE_BOEHM_THREAD_LOCAL_ALLOC="-DTHREAD_LOCAL_ALLOC"
-                # Parallel marking on Windows seems unreliable.
-                # ENABLE_BOEHM_PARALLEL_MARK="-DPARALLEL_MARK"
+                ENABLE_BOEHM_PARALLEL_MARK="-DPARALLEL_MARK"
                 ;;
         esac
         ;;
@@ -3226,8 +3224,7 @@ case "$host" in
         BOEHM_CFLAGS_FOR_THREADS="-DGC_THREADS $WIN32_GC_THREADLIB"
         THREAD_LIBS="-lpthread"
         ENABLE_BOEHM_THREAD_LOCAL_ALLOC="-DTHREAD_LOCAL_ALLOC"
-        # Parallel marking on Windows seems unreliable.
-        # ENABLE_BOEHM_PARALLEL_MARK="-DPARALLEL_MARK"
+        ENABLE_BOEHM_PARALLEL_MARK="-DPARALLEL_MARK"
         ;;
 
     *apple*darwin*)
-- 
2.9.0



More information about the reviews mailing list