summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-04 04:17:26 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-04 04:17:26 +0000
commit4f51d814183316c3e97da1dc13cf6945b5a76f2f (patch)
tree3ab2686a359f6cbdda8446d7382f9aa541c2490a /gc.c
parent5a8bfc39f132708bcf3ee2970e9f55ee6d101b65 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gc.c b/gc.c
index c615db0..5bbd48b 100644
--- a/gc.c
+++ b/gc.c
@@ -43,12 +43,11 @@ static void run_final();
#if defined(MSDOS) || defined(__human68k__)
#define GC_MALLOC_LIMIT 100000
#else
-#define GC_MALLOC_LIMIT 400000
+#define GC_MALLOC_LIMIT 4000000
#endif
#endif
static unsigned long malloc_memories = 0;
-static unsigned long alloc_objects = 0;
static void
mem_error(mesg)
@@ -282,7 +281,6 @@ rb_newobj()
retry:
obj = (VALUE)freelist;
freelist = freelist->as.free.next;
- alloc_objects++;
return obj;
}
if (dont_gc || during_gc || rb_prohibit_interrupt) add_heap();
@@ -914,7 +912,6 @@ rb_gc()
# define STACK_END (stack_end)
#endif
- alloc_objects = 0;
malloc_memories = 0;
if (during_gc) return;