summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 75316a03c1..c99b72fc85 100644
--- a/gc.c
+++ b/gc.c
@@ -87,7 +87,7 @@ rb_gc_guarded_ptr(volatile VALUE *ptr)
#define GC_HEAP_GROWTH_FACTOR 1.8
#endif
#ifndef GC_MALLOC_LIMIT
-#define GC_MALLOC_LIMIT 8000000
+#define GC_MALLOC_LIMIT (8 /* 8 MB */ * 1024 * 1024 /* 1MB */)
#endif
#ifndef GC_MALLOC_LIMIT_MAX
#define GC_MALLOC_LIMIT_MAX (256 /* 256 MB */ * 1024 * 1024 /* 1MB */)