commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e7257aa72e
commit
83fbff2f74
3
eval.c
3
eval.c
@ -6077,8 +6077,7 @@ rb_require_safe(fname, safe)
|
||||
}
|
||||
/* partial state */
|
||||
ftptr = ruby_strdup(RSTRING(feature)->ptr);
|
||||
st_insert(loading_tbl, (st_data_t)ftptr,
|
||||
(st_data_t)(mutex = rb_thread_mutex_new(Qtrue)));
|
||||
st_insert(loading_tbl, (st_data_t)ftptr, (st_data_t)curr_thread);
|
||||
if (feature == fname && !OBJ_FROZEN(feature)) {
|
||||
feature = rb_str_dup(feature);
|
||||
OBJ_FREEZE(feature);
|
||||
|
Loading…
x
Reference in New Issue
Block a user