diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-22 23:41:50 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-22 23:41:50 +0000 |
commit | 2ab827042ecbdf97afa461c658f2cf443f132a40 (patch) | |
tree | 6bb53b9e2d5a772f5955c7b261d5526f38a3b4d1 /variable.c | |
parent | 35695788d163372cddac8dfdb54afd101cba90e7 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c index 63c5f2aeab..10b885070c 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; |