Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0430-erts-Silence-CodeChecker-in-erts_processes...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0430-erts-Silence-CodeChecker-in-erts_processes_monitorin.patch of Package erlang
From 6607f8529cbb37435eb760f74014f8ea6246357f Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Wed, 10 Feb 2021 22:22:05 +0100 Subject: [PATCH 30/34] erts: Silence CodeChecker in erts_processes_monitoring_nodes --- erts/emulator/beam/dist.c | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/erts/emulator/beam/dist.c b/erts/emulator/beam/dist.c index b4c899f8ba..6ee2c897d4 100644 --- a/erts/emulator/beam/dist.c +++ b/erts/emulator/beam/dist.c @@ -6437,25 +6437,21 @@ erts_processes_monitoring_nodes(Process *c_p) sz = 0; ctxt.szp = &sz; ctxt.hpp = NULL; + ctxt.res = NIL; + erts_monitor_list_foreach(nodes_monitors, + nodes_monitor_info, + &ctxt); - while (1) { - ctxt.res = NIL; - - erts_monitor_list_foreach(nodes_monitors, - nodes_monitor_info, - (void *) &ctxt); - - if (ctxt.hpp) - break; - - hp = HAlloc(c_p, sz); + hp = HAlloc(c_p, sz); #ifdef DEBUG - hend = hp + sz; + hend = hp + sz; #endif - ctxt.hpp = &hp; - ctxt.szp = NULL; - } - + ctxt.hpp = &hp; + ctxt.szp = NULL; + ctxt.res = NIL; + erts_monitor_list_foreach(nodes_monitors, + nodes_monitor_info, + &ctxt); ASSERT(hp == hend); erts_mtx_unlock(&nodes_monitors_mtx); -- 2.26.2
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