File 0739-erts-remove-MBUF_GC_FACTOR-define.patch of Package erlang

From 513edbb150407a19213cb6603a8165e323c177c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Henrique=20Ferreira=20de=20Freitas?=
 <joaohf@gmail.com>
Date: Tue, 17 Feb 2026 17:31:15 -0300
Subject: [PATCH] erts: remove MBUF_GC_FACTOR define

The define MBUF_GC_FACTOR is not used anymore.
---
 erts/emulator/beam/erl_process.h | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/erts/emulator/beam/erl_process.h b/erts/emulator/beam/erl_process.h
index 3a21578676..befd0026f5 100644
--- a/erts/emulator/beam/erl_process.h
+++ b/erts/emulator/beam/erl_process.h
@@ -1219,19 +1219,6 @@ void erts_check_for_holes(Process* p);
 # define ERTS_HOLE_CHECK(p)
 #endif
 
-/*
- * The MBUF_GC_FACTOR decides how easily a process is subject to GC 
- * due to message buffers allocated outside the heap.
- * The larger the factor, the easier the process gets GCed.
- * On a small memory system with lots of processes, this makes a significant 
- * difference, especially since the GCs help fragmentation quite a bit too.
- */
-#if defined(SMALL_MEMORY)
-#define MBUF_GC_FACTOR 4
-#else
-#define MBUF_GC_FACTOR 1
-#endif
-
 #define SEQ_TRACE_TOKEN(p)  ((p)->seq_trace_token)
 
 #if ERTS_NO_PROC_PRIO_LEVELS > 4
-- 
2.51.0

openSUSE Build Service is sponsored by