From: Ivan Maidanski Date: Mon, 19 Nov 2012 05:36:04 +0000 (+0400) Subject: Fix heap sections overflow for Win32/Cygwin with enabled parallel marker X-Git-Tag: gc7_2e~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7778b2e26cb12168061551718b604970fc7958a9;p=gc Fix heap sections overflow for Win32/Cygwin with enabled parallel marker * include/private/gc_priv.h (MAX_HEAP_SECTS): Define to 384 instead of 128 if Win32/Cygwin and PARALLEL_MARK. --- diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 7a15aacd..48aa334b 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -953,7 +953,11 @@ struct roots { # define MAX_HEAP_SECTS 768 /* Separately added heap sections. */ # endif # elif defined(SMALL_CONFIG) && !defined(USE_PROC_FOR_LIBRARIES) -# define MAX_HEAP_SECTS 128 /* Roughly 256MB (128*2048*1K) */ +# if defined(PARALLEL_MARK) && (defined(MSWIN32) || defined(CYGWIN32)) +# define MAX_HEAP_SECTS 384 +# else +# define MAX_HEAP_SECTS 128 /* Roughly 256MB (128*2048*1K) */ +# endif # elif CPP_WORDSZ > 32 # define MAX_HEAP_SECTS 1024 /* Roughly 8GB */ # else