ruby-changes:52232
From: normal <ko1@a...>
Date: Sat, 18 Aug 2018 15:05:22 +0900 (JST)
Subject: [ruby-changes:52232] normal:r64440 (trunk): Revert "thread_sync.c (do_sleep): avoid thread-switch/interrupt check"
normal 2018-08-18 15:05:17 +0900 (Sat, 18 Aug 2018) New Revision: 64440 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64440 Log: Revert "thread_sync.c (do_sleep): avoid thread-switch/interrupt check" This reverts commit d7ddbff2954ba22b71bdfeba4b94e1c4fb91efb0 (r64436) Seems worthless at preventing CI failures Modified files: trunk/thread_sync.c Index: thread_sync.c =================================================================== --- thread_sync.c (revision 64439) +++ thread_sync.c (revision 64440) @@ -1358,12 +1358,6 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/thread_sync.c#L1358 do_sleep(VALUE args) { struct sleep_call *p = (struct sleep_call *)args; - - if (rb_obj_class(p->mutex) == rb_cMutex) { - return rb_mutex_sleep(p->mutex, p->timeout); - } - - /* FIXME: Mutex_m may still check interrupts here */ return rb_funcallv(p->mutex, id_sleep, 1, &p->timeout); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/