Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
5491-erts-Refactor-minor_collection-with-need-S...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 5491-erts-Refactor-minor_collection-with-need-S_RESERVED.patch of Package erlang
From d93b82e47eddcbe7d2f04c85ab926f88280dfbdb Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Mon, 6 Feb 2023 21:13:29 +0100 Subject: [PATCH] erts: Refactor minor_collection with need += S_RESERVED --- erts/emulator/beam/erl_gc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/erts/emulator/beam/erl_gc.c b/erts/emulator/beam/erl_gc.c index 4e08903ee9..32ba06188f 100644 --- a/erts/emulator/beam/erl_gc.c +++ b/erts/emulator/beam/erl_gc.c @@ -1350,6 +1350,8 @@ minor_collection(Process* p, ErlHeapFragment *live_hf_end, Uint debug_tmp = 0; #endif + need += S_RESERVED; + /* * Check if we have gone past the max heap size limit */ @@ -1433,8 +1435,7 @@ minor_collection(Process* p, ErlHeapFragment *live_hf_end, GEN_GCS(p)++; need_after = ((HEAP_TOP(p) - HEAP_START(p)) + need - + stack_size - + S_RESERVED); + + stack_size); /* * Excessively large heaps should be shrunk, but -- 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