diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-12 07:34:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-12 07:34:51 +0000 |
commit | a0fed28e8112ae2276aea99e22e2c9fff9dd6c12 (patch) | |
tree | 96568d147cbccda74861cd88ad421a24cda0ac2d | |
parent | 7b4653fe6310bcc0602358bbcc993ed4765f6f65 (diff) | |
download | ruby-a0fed28e8112ae2276aea99e22e2c9fff9dd6c12.tar.gz |
* vm.c (thread_recycle_stack, rb_thread_recycle_stack_release):
stack belongs to no object space.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/mvm@25731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | vm.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Thu Nov 12 16:34:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * vm.c (thread_recycle_stack, rb_thread_recycle_stack_release): + stack belongs to no object space. + Thu Nov 12 14:33:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * thread_win32.c (thread_errno): CreateThread does not set errno. @@ -1559,12 +1559,12 @@ thread_recycle_stack(size_t size) return thread_recycle_stack_slot[--thread_recycle_stack_count]; } else { - return ALLOC_N(VALUE, size); + return malloc(sizeof(VALUE) * size); } } #else -#define thread_recycle_stack(size) ALLOC_N(VALUE, (size)) +#define thread_recycle_stack(size) malloc(sizeof(VALUE) * (size)) #endif void @@ -1576,7 +1576,7 @@ rb_thread_recycle_stack_release(VALUE *stack) return; } #endif - ruby_xfree(stack); + free(stack); } #ifdef USE_THREAD_RECYCLE |