From 320b49473ee64f37787c514e18577106e8231588 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 25 Dec 2012 04:38:18 +0000 Subject: error.c: rb_write_error_str * error.c (compile_err_append, compile_warn_print, warn_print): use rb_write_error_str() instead of writing to rb_stderr directly. * io.c (rb_write_error_str): a stopgap measure not to unblock GVL. warning from require seems to still have race condition errors. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- load.c | 1 + 1 file changed, 1 insertion(+) (limited to 'load.c') diff --git a/load.c b/load.c index c0508fccb2..70e3ee8646 100644 --- a/load.c +++ b/load.c @@ -663,6 +663,7 @@ load_lock(const char *ftptr) } if (RTEST(ruby_verbose)) { rb_warning("loading in progress, circular require considered harmful - %s", ftptr); + /* TODO: display to $stderr, not stderr in C */ rb_backtrace(); } switch (rb_thread_shield_wait((VALUE)data)) { -- cgit v1.2.3