summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-13 02:09:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-13 02:09:33 +0000
commit416a12288313de8c6192bf9c94e4ecd35f22032e (patch)
tree037b9095984649fc69663891d7d97571e8c48a2b /gc.c
parent250d6e87e9bd582e63a13038180acf81ff1307fc (diff)
downloadruby-416a12288313de8c6192bf9c94e4ecd35f22032e.tar.gz
ruby-416a12288313de8c6192bf9c94e4ecd35f22032e.tar.xz
ruby-416a12288313de8c6192bf9c94e4ecd35f22032e.zip
* gc.c (vm_xrealloc): use the given object space.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index 77111011e..f472bfc73 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);
}