Add a patch to prevent Julia running out of virtual memory

This commit is contained in:
Erik Schnetter 2016-01-09 10:47:31 -05:00
parent b18732173a
commit 79a1de2f17
2 changed files with 13 additions and 0 deletions

View file

@ -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

View file

@ -8,6 +8,8 @@ class Julia(Package):
version('0.4.2', 'ccfeb4f4090c8b31083f5e1ccb03eb06')
patch('gc.patch')
# Build-time dependencies
depends_on("cmake @2.8:")
# depends_on("awk")