[前][次][番号順一覧][スレッド一覧]

ruby-changes:44916

From: shugo <ko1@a...>
Date: Tue, 6 Dec 2016 08:37:34 +0900 (JST)
Subject: [ruby-changes:44916] shugo:r56988 (trunk): Add a comment.

shugo	2016-12-06 08:37:25 +0900 (Tue, 06 Dec 2016)

  New Revision: 56988

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56988

  Log:
    Add a comment.

  Modified files:
    trunk/load.c
Index: load.c
===================================================================
--- load.c	(revision 56987)
+++ load.c	(revision 56988)
@@ -758,6 +758,8 @@ release_thread_shield(st_data_t *key, st https://github.com/ruby/ruby/blob/trunk/load.c#L758
     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 */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]