diff --git a/lib/libesp32/berry/src/be_string.c b/lib/libesp32/berry/src/be_string.c index ccc734ae3..9fe32c04a 100644 --- a/lib/libesp32/berry/src/be_string.c +++ b/lib/libesp32/berry/src/be_string.c @@ -268,9 +268,13 @@ void be_gcstrtab(bvm *vm) } } } +#if BE_USE_DEBUG_GC == 0 if (tab->count < size >> 2 && size > 8) { resize(vm, size >> 1); } +#else + resize(vm, tab->count + 4); +#endif } uint32_t be_strhash(const bstring *s)