]> granicus.if.org Git - gc/commitdiff
Increase MAX_HEAP_SECTS (10 times) for large-config
authorThomas Linder Puls <thomas_linder_puls@hotmail.com>
Mon, 6 Mar 2017 10:55:56 +0000 (11:55 +0100)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 7 Mar 2017 16:44:57 +0000 (19:44 +0300)
This enables heaps larger than 128 GB on 64-bit targets.

* include/private/gc_priv.h [!MAX_HEAP_SECTS && LARGE_CONFIG]
(MAX_HEAP_SECTS): Increase value 10 times (from 8192 to 81920 if
64-bit target, from 768 to 7680 otherwise); remove comments.

include/private/gc_priv.h

index d92591ed5a5686f213bc012719e1caf05ad8ebbb..d166b5a0ed49855e1b8e5b3a4e34e991d4c1cb42 100644 (file)
@@ -1134,9 +1134,9 @@ struct roots {
 #ifndef MAX_HEAP_SECTS
 # ifdef LARGE_CONFIG
 #   if CPP_WORDSZ > 32
-#     define MAX_HEAP_SECTS 8192        /* overflows at roughly 128 GB  */
+#     define MAX_HEAP_SECTS 81920
 #   else
-#     define MAX_HEAP_SECTS 768         /* Separately added heap sections. */
+#     define MAX_HEAP_SECTS 7680
 #   endif
 # elif defined(SMALL_CONFIG) && !defined(USE_PROC_FOR_LIBRARIES)
 #   if defined(PARALLEL_MARK) && (defined(MSWIN32) || defined(CYGWIN32))