From 1ac9b2ed5ce6a5622532c8e77c197fc1963bd4f3 Mon Sep 17 00:00:00 2001 From: shugo Date: Mon, 5 Dec 2016 23:37:25 +0000 Subject: Add a comment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- load.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'load.c') diff --git a/load.c b/load.c index c37f8bcf0b..43b61e982a 100644 --- a/load.c +++ b/load.c @@ -758,6 +758,8 @@ release_thread_shield(st_data_t *key, st_data_t *value, st_data_t done, int exis if (!existing) return ST_STOP; if (done) { rb_thread_shield_destroy(thread_shield); + /* Delete the entry even if there are waiting threads, because they + * won't load the file and won't delete the entry. */ } else if (rb_thread_shield_release(thread_shield)) { /* still in-use */ -- cgit v1.2.3