summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorivmai <ivmai>2011-07-05 19:53:24 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:07:00 +0200
commit0e57ad67def39d7b672577499346103a4a19bdf8 (patch)
tree568dcefb3bc31e7b66dac6e518758a8daba5b5e4 /include
parentd0f043893c60075690a974e41901fb7a878cad3d (diff)
2011-07-05 Ivan Maidanski <ivmai@mail.ru>
* misc.c (GC_init): Use HOTTER_THAN (instead of STACK_GROWS_DOWN) for GC_stackbottom assertion. * os_dep.c (GC_enclosing_mapping): Define only if IA64 or INCLUDE_LINUX_THREAD_DESCR; make GC_INNER. * pthread_support.c (GC_enclosing_mapping): Declare (only if INCLUDE_LINUX_THREAD_DESCR). * os_dep.c (GC_get_main_stack_base): Don't call pthread_getattr_np if REDIRECT_MALLOC as the former is observed to call redirected malloc (while GC is not initialized yet) on some Linux platforms. * include/private/gc_priv.h (MAX_HEAP_SECTS): Don't use a smaller value for SMALL_CONFIG if USE_PROC_FOR_LIBRARIES defined.
Diffstat (limited to 'include')
-rw-r--r--include/private/gc_priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h
index daf2069..d3d14ca 100644
--- a/include/private/gc_priv.h
+++ b/include/private/gc_priv.h
@@ -952,7 +952,7 @@ struct roots {
# else
# define MAX_HEAP_SECTS 768 /* Separately added heap sections. */
# endif
-# elif defined(SMALL_CONFIG)
+# elif defined(SMALL_CONFIG) && !defined(USE_PROC_FOR_LIBRARIES)
# define MAX_HEAP_SECTS 128 /* Roughly 256MB (128*2048*1K) */
# elif CPP_WORDSZ > 32
# define MAX_HEAP_SECTS 1024 /* Roughly 8GB */