fixed hash_map_resize() - added Map/WeakMap in microbench

This commit is contained in:
Fabrice Bellard
2025-03-22 10:54:21 +01:00
parent 9f65ef1950
commit 49413985eb
2 changed files with 65 additions and 6 deletions

View File

@@ -46186,7 +46186,6 @@ static void map_hash_resize(JSContext *ctx, JSMapState *s)
sizeof(new_hash_table[0]) * new_hash_size, &slack);
if (!new_hash_table)
return;
new_hash_size += slack / sizeof(*new_hash_table);
for(i = 0; i < new_hash_size; i++)
init_list_head(&new_hash_table[i]);