summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-04 21:05:31 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-04 21:05:31 +0000
commit670c6e8ce9d4a12bb4832e10fab27365398649bf (patch)
tree1c53c28a448ff1fe677771f65f40db05d646c248 /vm.c
parentf0b12c0461bd6d86f6fa34255f99b760e34dba04 (diff)
vm.c: remove unused USE_THREAD_RECYCLE [misc #10198]
Unused feature, and it is a no-op even if enabled. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/vm.c b/vm.c
index d2e8f07..f43228f 100644
--- a/vm.c
+++ b/vm.c
@@ -1967,16 +1967,6 @@ rb_thread_recycle_stack_release(VALUE *stack)
ruby_xfree(stack);
}
-#ifdef USE_THREAD_RECYCLE
-static rb_thread_t *
-thread_recycle_struct(void)
-{
- void *p = ALLOC_N(rb_thread_t, 1);
- memset(p, 0, sizeof(rb_thread_t));
- return p;
-}
-#endif
-
void
rb_thread_mark(void *ptr)
{
@@ -2134,13 +2124,9 @@ static VALUE
thread_alloc(VALUE klass)
{
VALUE volatile obj;
-#ifdef USE_THREAD_RECYCLE
- rb_thread_t *th = thread_recycle_struct();
- obj = TypedData_Wrap_Struct(klass, &thread_data_type, th);
-#else
rb_thread_t *th;
obj = TypedData_Make_Struct(klass, rb_thread_t, &thread_data_type, th);
-#endif
+
return obj;
}