From 84608b13622a4774c8015f8942db863820c0f81b Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 18 Jun 2013 01:18:32 +0000 Subject: * variable.c (rb_autoload): fix WB miss. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- variable.c | 1 + 1 file changed, 1 insertion(+) (limited to 'variable.c') diff --git a/variable.c b/variable.c index 749d928b17..79fcca0280 100644 --- a/variable.c +++ b/variable.c @@ -1621,6 +1621,7 @@ rb_autoload(VALUE mod, ID id, const char *file) if (!tbl) tbl = RCLASS_IV_TBL(mod) = st_init_numtable(); av = (st_data_t)TypedData_Wrap_Struct(0, &autoload_data_type, 0); st_add_direct(tbl, (st_data_t)autoload, av); + OBJ_WRITTEN(mod, Qnil, av); DATA_PTR(av) = tbl = st_init_numtable(); } fn = rb_str_new2(file); -- cgit v1.2.3