ruby-changes:5534
From: nobu <ko1@a...>
Date: Mon, 9 Jun 2008 11:58:34 +0900 (JST)
Subject: [ruby-changes:5534] Ruby:r17037 (trunk): * vm.c (rb_thread_recycle_stack_release): reduce redundant code.
nobu 2008-06-09 11:58:23 +0900 (Mon, 09 Jun 2008)
New Revision: 17037
Modified files:
trunk/vm.c
Log:
* vm.c (rb_thread_recycle_stack_release): reduce redundant code.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/vm.c?r1=17037&r2=17036&diff_format=u
Index: vm.c
===================================================================
--- vm.c (revision 17036)
+++ vm.c (revision 17037)
@@ -1413,13 +1413,10 @@
#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
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/