We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21f6eaa commit 08775a2Copy full SHA for 08775a2
1 file changed
vm_method.c
@@ -82,7 +82,7 @@ rb_mcache_resize(struct rb_meth_cache *cache)
82
}
83
84
/* deal with lots of cached method_missing */
85
- if (tmp.size < tmp.capa / 8) {
+ if (tmp.size < tmp.capa / 8 && tmp.capa > 8) {
86
xfree(tmp.entries);
87
while(tmp.capa > tmp.size * 2 && tmp.capa > 8) {
88
tmp.capa /= 2;
0 commit comments