From 29f982738e0703c316ff124f66e92791c13f2376 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 13 Nov 2009 02:09:33 +0000 Subject: * gc.c (vm_xrealloc): use the given object space. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index 77111011e6..f472bfc734 100644 --- a/gc.c +++ b/gc.c @@ -683,7 +683,7 @@ vm_xrealloc(rb_objspace_t *objspace, void *ptr, size_t size) if ((ssize_t)size < 0) { negative_size_allocation_error("negative re-allocation size"); } - if (!ptr) return ruby_xmalloc(size); + if (!ptr) return vm_xmalloc(objspace, size); if (size == 0) { vm_xfree(objspace, ptr); return 0; @@ -776,7 +776,7 @@ void ruby_xfree(void *x) { if (x) - vm_xfree(&rb_objspace, x); + vm_xfree(&rb_objspace, x); } -- cgit v1.2.3