aboutsummaryrefslogtreecommitdiffstats
path: root/load.c
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-05 23:37:25 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-05 23:37:25 +0000
commit3962ffd44045a061ca010f532b6ebdec0be62668 (patch)
tree9795d512eb01f05ea6a3eb000afa25679f7cb1a1 /load.c
parent69aef0f06a7c3e05cb11e30396598b3700c9cc98 (diff)
downloadruby-3962ffd44045a061ca010f532b6ebdec0be62668.tar.gz
Add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r--load.c2
1 files changed, 2 insertions, 0 deletions
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 */