dumping ground for random patches and texts
 help / color / mirror / Atom feed
* [PATCH] variable.c: workarouind recursive autoload trigger
@ 2015-11-05 21:33 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-11-05 21:33 UTC (permalink / raw)
  To: spew

---
 variable.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/variable.c b/variable.c
index ec6924a..c8264b1 100644
--- a/variable.c
+++ b/variable.c
@@ -2179,6 +2179,9 @@ rb_autoload_load(VALUE mod, ID id)
 	 */
 	list_head_init(&state.waitq.head);
     }
+    else if (state.thread == ele->state->thread) {
+	return Qfalse;
+    }
     else {
 	list_add_tail(&ele->state->waitq.head, &state.waitq.node);
 	/*
-- 
EW


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-05 21:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-05 21:33 [PATCH] variable.c: workarouind recursive autoload trigger Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).