Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
1370-erts-Fix-hashmap_iterator_prev.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor