* vm.c (rb_thread_recycle_stack_release): reduce redundant code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
10bfa5d49f
commit
efe5422e6a
7
vm.c
7
vm.c
@ -1413,13 +1413,10 @@ rb_thread_recycle_stack_release(VALUE *stack)
|
|||||||
#if USE_THREAD_DATA_RECYCLE
|
#if USE_THREAD_DATA_RECYCLE
|
||||||
if (thread_recycle_stack_count < RECYCLE_MAX) {
|
if (thread_recycle_stack_count < RECYCLE_MAX) {
|
||||||
thread_recycle_stack_slot[thread_recycle_stack_count++] = stack;
|
thread_recycle_stack_slot[thread_recycle_stack_count++] = stack;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
ruby_xfree(stack);
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
ruby_xfree(stack);
|
|
||||||
#endif
|
#endif
|
||||||
|
ruby_xfree(stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_THREAD_RECYCLE
|
#ifdef USE_THREAD_RECYCLE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user