summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-22 23:41:50 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-22 23:41:50 (GMT)
commit2ab827042ecbdf97afa461c658f2cf443f132a40 (patch)
tree6bb53b9e2d5a772f5955c7b261d5526f38a3b4d1 /variable.c
parent35695788d163372cddac8dfdb54afd101cba90e7 (diff)
variable.c (autoload_sleep_done): avoid needless list_node init
We do not need list_del_init in ensure callbacks, only list_del, since it can only ever be called after list_del_init in autoload_reset. So avoid the needless re-initialization. * variable.c (autoload_sleep_done): s/list_del_init/list_del/ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 63c5f2a..10b8850 100644
--- a/variable.c
+++ b/variable.c
@@ -2141,7 +2141,7 @@ autoload_sleep_done(VALUE arg)
struct autoload_state *state = (struct autoload_state *)arg;
if (state->thread != Qfalse && rb_thread_to_be_killed(state->thread)) {
- list_del_init(&state->waitq.node); /* idempotent */
+ list_del(&state->waitq.node); /* idempotent after list_del_init */
}
return Qfalse;