From 0c60f22ec5e7a08939a8a5c23b5666e8f341b48e Mon Sep 17 00:00:00 2001 From: normal Date: Tue, 9 Jan 2018 23:47:19 +0000 Subject: thread_pthread.c: remove dead code around "get_stack_of" "get_stack_of" was only in a proposed patch for [Feature #8793] https://bugs.ruby-lang.org/issues/8793 and never applied. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index 0313ac8b00..f54e5f04d8 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -834,11 +834,6 @@ native_thread_init_stack(rb_thread_t *th) th->ec->machine.stack_start = (VALUE *)&curr; th->ec->machine.stack_maxsize = size - diff; } -#elif defined get_stack_of - if (!th->ec->machine.stack_maxsize) { - native_mutex_lock(&th->interrupt_lock); - native_mutex_unlock(&th->interrupt_lock); - } #else rb_raise(rb_eNotImpError, "ruby engine can initialize only in the main thread"); #endif @@ -1010,18 +1005,7 @@ native_thread_create(rb_thread_t *th) # endif CHECK_ERR(pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED)); -#ifdef get_stack_of - native_mutex_lock(&th->interrupt_lock); -#endif err = pthread_create(&th->thread_id, attrp, thread_start_func_1, th); -#ifdef get_stack_of - if (!err) { - get_stack_of(th->thread_id, - &th->ec->machine.stack_start, - &th->ec->machine.stack_maxsize); - } - native_mutex_unlock(&th->interrupt_lock); -#endif thread_debug("create: %p (%d)\n", (void *)th, err); /* should be done in the created thread */ fill_thread_id_str(th); -- cgit v1.2.3