ruby-changes:13942
From: nobu <ko1@a...>
Date: Fri, 13 Nov 2009 11:09:59 +0900 (JST)
Subject: [ruby-changes:13942] Ruby:r25746 (mvm, trunk): * gc.c (vm_xrealloc): use the given object space.
nobu 2009-11-13 11:09:33 +0900 (Fri, 13 Nov 2009) New Revision: 25746 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25746 Log: * gc.c (vm_xrealloc): use the given object space. Modified files: branches/mvm/ChangeLog branches/mvm/gc.c trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 25745) +++ ChangeLog (revision 25746) @@ -1,3 +1,7 @@ +Fri Nov 13 11:09:31 2009 Nobuyoshi Nakada <nobu@r...> + + * gc.c (vm_xrealloc): use the given object space. + Fri Nov 13 00:46:24 2009 Takeyuki FUJIOKA <xibbar@r...> * lib/cgi/util.rb (CGI::pretty): fix the overflow bug Index: gc.c =================================================================== --- gc.c (revision 25745) +++ gc.c (revision 25746) @@ -683,7 +683,7 @@ 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 @@ ruby_xfree(void *x) { if (x) - vm_xfree(&rb_objspace, x); + vm_xfree(&rb_objspace, x); } Index: mvm/ChangeLog =================================================================== --- mvm/ChangeLog (revision 25745) +++ mvm/ChangeLog (revision 25746) @@ -1,3 +1,7 @@ +Fri Nov 13 11:09:31 2009 Nobuyoshi Nakada <nobu@r...> + + * gc.c (vm_xrealloc): use the given object space. + Fri Nov 13 10:14:11 2009 Nobuyoshi Nakada <nobu@r...> * eval.c (ruby_vm_cleanup): not destruct vm, nor re-send signal. Index: mvm/gc.c =================================================================== --- mvm/gc.c (revision 25745) +++ mvm/gc.c (revision 25746) @@ -682,7 +682,7 @@ if ((ssize_t)size < 0) { negative_size_allocation_error("negative re-allocation size"); } - if (!ptr) return ruby_xmalloc(size); + if (!ptr) return rb_objspace_xmalloc(objspace, size); if (size == 0) { rb_objspace_xfree(objspace, ptr); return 0; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/