Skip to content

Commit e848e3d

Browse files
funny-falcontmm1
authored andcommitted
fix rb_mcache_resize
1 parent e23cd54 commit e848e3d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

vm_method.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ rb_mcache_resize(struct rb_meth_cache *cache)
7070
int i;
7171

7272
MEMZERO(&tmp, struct rb_meth_cache, 1);
73+
tmp.method_state = cache->method_state;
74+
tmp.class_serial = cache->class_serial;
7375
tmp.capa = cache->capa * 2;
7476
tmp.entries = xcalloc(tmp.capa, sizeof(struct cache_entry));
7577
for(i = 0; i < cache->capa; i++) {

0 commit comments

Comments
 (0)