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

* variable.c (rb_autoload): fix WB miss.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-06-18 01:18:32 +00:00
parent f43f9f33ac
commit 84608b1362
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Tue Jun 18 10:17:37 2013 Koichi Sasada <ko1@atdot.net>
* variable.c (rb_autoload): fix WB miss.
Tue Jun 18 04:20:18 2013 Koichi Sasada <ko1@atdot.net> Tue Jun 18 04:20:18 2013 Koichi Sasada <ko1@atdot.net>
* gc.c (gc_mark_children): don't need to care about T_ZOMBIE here. * gc.c (gc_mark_children): don't need to care about T_ZOMBIE here.

View file

@ -1621,6 +1621,7 @@ rb_autoload(VALUE mod, ID id, const char *file)
if (!tbl) tbl = RCLASS_IV_TBL(mod) = st_init_numtable(); if (!tbl) tbl = RCLASS_IV_TBL(mod) = st_init_numtable();
av = (st_data_t)TypedData_Wrap_Struct(0, &autoload_data_type, 0); av = (st_data_t)TypedData_Wrap_Struct(0, &autoload_data_type, 0);
st_add_direct(tbl, (st_data_t)autoload, av); st_add_direct(tbl, (st_data_t)autoload, av);
OBJ_WRITTEN(mod, Qnil, av);
DATA_PTR(av) = tbl = st_init_numtable(); DATA_PTR(av) = tbl = st_init_numtable();
} }
fn = rb_str_new2(file); fn = rb_str_new2(file);