diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-09 02:58:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-09 02:58:23 +0000 |
commit | ca13ba96870c06940f22ea061612bedd3a08fff4 (patch) | |
tree | 7c86f8e6042dcf184ed580d9cb2a732c806f48ff | |
parent | 55172859bc6a55061e730bf862531dc7ee4b5d4f (diff) | |
download | ruby-ca13ba96870c06940f22ea061612bedd3a08fff4.tar.gz ruby-ca13ba96870c06940f22ea061612bedd3a08fff4.tar.xz ruby-ca13ba96870c06940f22ea061612bedd3a08fff4.zip |
* vm.c (rb_thread_recycle_stack_release): reduce redundant code.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | vm.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1413,13 +1413,10 @@ rb_thread_recycle_stack_release(VALUE *stack) #if USE_THREAD_DATA_RECYCLE if (thread_recycle_stack_count < RECYCLE_MAX) { thread_recycle_stack_slot[thread_recycle_stack_count++] = stack; + return; } - else { - ruby_xfree(stack); - } -#else - ruby_xfree(stack); #endif + ruby_xfree(stack); } #ifdef USE_THREAD_RECYCLE |