File 1370-erts-Fix-hashmap_iterator_prev.patch of Package erlang
From f4c9768708f81824d949adb10188db392862cbd0 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Tue, 10 Oct 2023 22:03:47 +0200
Subject: [PATCH] erts: Fix hashmap_iterator_prev
Since the introduction of collision nodes (e1044e4213f7f7),
the max size of a hashmap node is no longer 17. So to signal
that we are iterating on a node with unknown size, we set the
size to max int instead.
---
erts/emulator/beam/erl_map.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/erts/emulator/beam/erl_map.c b/erts/emulator/beam/erl_map.c
index c4ddee1436..ffda8ab0a5 100644
--- a/erts/emulator/beam/erl_map.c
+++ b/erts/emulator/beam/erl_map.c
@@ -2312,7 +2312,7 @@ Eterm* hashmap_iterator_prev(ErtsWStack* s) {
}
ASSERT(is_boxed(ptr[idx]));
node = ptr[idx];
- idx = 17;
+ idx = UINT_MAX;
}
else
break; /* and pop parent node */
--
2.35.3