Eric Wong <normalperson / yhbt.net> wrote: > I am testing this, it looks like GC is confused by EMBED_FLAG being > set and having ->ntbl: > > --- a/hash.c > +++ b/hash.c > @@ -866,7 +866,8 @@ rb_hash_rehash(VALUE hash) > rb_hash_modify_check(hash); > if (!RHASH(hash)->ntbl) > return hash; > - tmp = hash_alloc(0); > + tmp = rb_hash_new(); > + explode(tmp); > tbl = st_init_table_with_size(RHASH(hash)->ntbl->type, RHASH(hash)->ntbl->num_entries); > RHASH(tmp)->ntbl = tbl; Pushed as commit 9d00d05d17c1a551973598b51dce894cb7f0f13e git://80x24.org/ruby.git pull-495-fixes