summaryrefslogtreecommitdiff
path: root/var/spack/packages/julia/gc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/packages/julia/gc.patch')
-rw-r--r--var/spack/packages/julia/gc.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/packages/julia/gc.patch b/var/spack/packages/julia/gc.patch
new file mode 100644
index 0000000000..6db69c6c1b
--- /dev/null
+++ b/var/spack/packages/julia/gc.patch
@@ -0,0 +1,11 @@
+--- julia/src/gc.c
++++ julia/src/gc.c
+@@ -162,7 +162,7 @@
+ // A region is contiguous storage for up to REGION_PG_COUNT naturally aligned GC_PAGE_SZ pages
+ // It uses a very naive allocator (see malloc_page & free_page)
+ #if defined(_P64) && !defined(_COMPILER_MICROSOFT_)
+-#define REGION_PG_COUNT 16*8*4096 // 8G because virtual memory is cheap
++#define REGION_PG_COUNT 8*4096 // 512M
+ #else
+ #define REGION_PG_COUNT 8*4096 // 512M
+ #endif