gc.c: use the argument objspace
* gc.c (objspace_xrealloc): use the argument objspace, instead of the default object space. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cea73b2df9
commit
8acaa122f5
2
gc.c
2
gc.c
@ -7872,7 +7872,7 @@ xmalloc2_size(const size_t count, const size_t elsize)
|
|||||||
static void *
|
static void *
|
||||||
objspace_xmalloc2(rb_objspace_t *objspace, size_t n, size_t size)
|
objspace_xmalloc2(rb_objspace_t *objspace, size_t n, size_t size)
|
||||||
{
|
{
|
||||||
return objspace_xmalloc0(&rb_objspace, xmalloc2_size(n, size));
|
return objspace_xmalloc0(objspace, xmalloc2_size(n, size));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user