Skip to content

Commit 08775a2

Browse files
funny-falcontmm1
authored andcommitted
fix last check
1 parent 21f6eaa commit 08775a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vm_method.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ rb_mcache_resize(struct rb_meth_cache *cache)
8282
}
8383
}
8484
/* deal with lots of cached method_missing */
85-
if (tmp.size < tmp.capa / 8) {
85+
if (tmp.size < tmp.capa / 8 && tmp.capa > 8) {
8686
xfree(tmp.entries);
8787
while(tmp.capa > tmp.size * 2 && tmp.capa > 8) {
8888
tmp.capa /= 2;

0 commit comments

Comments
 (0)