diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-03 02:25:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-03 02:25:42 +0000 |
commit | 0f9422ef230c0f7d873563e5ab29230ad54c6d41 (patch) | |
tree | 323382a9bdea5b763df4453bd7efd0d518bd4920 | |
parent | 13a468db1710405ccdff3358abf7d2aea396d9b5 (diff) | |
download | ruby-0f9422ef230c0f7d873563e5ab29230ad54c6d41.tar.gz |
* load.c (load_lock): warn for circular require. [ruby-core:20794],
[ruby-core:20797]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | load.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Feb 3 11:25:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * load.c (load_lock): warn for circular require. [ruby-core:20794], + [ruby-core:20797] + Tue Feb 3 08:35:12 2009 Tanaka Akira <akr@fsij.org> * ext/socket/lib/socket.rb (Socket.tcp_server_sockets): extracted from @@ -379,6 +379,7 @@ load_lock(const char *ftptr) st_insert(loading_tbl, (st_data_t)ftptr, data); return (char *)ftptr; } + rb_warning("loading in progress, circular require considered harmful - %s", ftptr); return RTEST(rb_barrier_wait((VALUE)data)) ? (char *)ftptr : 0; } |