From fec3a21c8a63a9707f32060f89fabe86ef3b18ce Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Tue, 9 May 2023 21:13:00 +0200 Subject: [PATCH] Berry strtab test case (#18623) --- lib/libesp32/berry/src/be_string.c | 4 ++++ 1 file changed, 4 insertions(+) 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)