summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-27 08:45:45 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-27 08:45:45 +0000
commita31ff891a17f0dcf8c070b882fe89be89837e7c5 (patch)
tree1671c979ed8c9c8d487513d12b140cff417c1ea3 /gc.c
parent78a49728b2198db692cae1418601bf1b8c61cb08 (diff)
* gc.c (GC_MALLOC_LIMIT): 8,000,000 -> 8 * 1,024 * 1,024.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 */)