Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
1015-erts-Fix-reds-counting-in-erts_continue_ex...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1015-erts-Fix-reds-counting-in-erts_continue_exit_process.patch of Package erlang
From 080d901aaadca1c6780bafab7e6dbb986c5aa4c1 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Wed, 6 Mar 2024 16:21:43 +0100 Subject: [PATCH] erts: Fix reds counting in erts_continue_exit_process cleanup_sys_tasks() returns reds left, not reds consumed. --- erts/emulator/beam/erl_process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index c2ca5a03f3..297e0dbd36 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -14032,7 +14032,7 @@ restart: erts_set_gc_state(p, 1); state = erts_atomic32_read_acqb(&p->state); if ((state & ERTS_PSFLG_SYS_TASKS) || p->dirty_sys_tasks) { - reds -= cleanup_sys_tasks(p, state, reds); + reds = cleanup_sys_tasks(p, state, reds); if (reds <= 0) goto yield; } @@ -14115,7 +14115,7 @@ restart: state = erts_atomic32_read_acqb(&p->state); if ((state & ERTS_PSFLG_SYS_TASKS) || p->dirty_sys_tasks) { - reds -= cleanup_sys_tasks(p, state, reds); + reds = cleanup_sys_tasks(p, state, reds); if (reds <= 0) goto yield; } -- 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