ruby-changes:62997
From: Benoit <ko1@a...>
Date: Fri, 18 Sep 2020 00:30:44 +0900 (JST)
Subject: [ruby-changes:62997] d9b943b8e5 (master): Cleanup commented code
https://git.ruby-lang.org/ruby.git/commit/?id=d9b943b8e5 From d9b943b8e57af5d2f2734998dc67c56cbf3b77b7 Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Thu, 17 Sep 2020 17:29:43 +0200 Subject: Cleanup commented code * Mutex operations no longer disable the Fiber scheduler. diff --git a/thread_sync.c b/thread_sync.c index 67d7962..41df2de 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -199,8 +199,6 @@ mutex_locked(rb_thread_t *th, VALUE self) https://github.com/ruby/ruby/blob/trunk/thread_sync.c#L199 mutex->next_mutex = th->keeping_mutexes; } th->keeping_mutexes = mutex; - - // th->blocking += 1; } /* @@ -394,8 +392,6 @@ rb_mutex_unlock_th(rb_mutex_t *mutex, rb_thread_t *th, rb_fiber_t *fiber) https://github.com/ruby/ruby/blob/trunk/thread_sync.c#L392 struct sync_waiter *cur = 0, *next; rb_mutex_t **th_mutex = &th->keeping_mutexes; - // th->blocking -= 1; - mutex->fiber = 0; list_for_each_safe(&mutex->waitq, cur, next, node) { list_del_init(&cur->node); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/