1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2009-02-03 02:25:42 +00:00
parent 13a468db17
commit 0f9422ef23
2 changed files with 6 additions and 0 deletions

View file

@ -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

1
load.c
View file

@ -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;
}