From 4fd6a61605bd441ad8a5bbb8ffe758fed1f4f6a7 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 19 Jan 2025 18:51:08 +0100 Subject: [PATCH] Document that gc-cons-* variables have no effect with IGC * src/alloc.c (syms_of_alloc) : Document that these variables have no effect with IGC. --- src/alloc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/alloc.c b/src/alloc.c index ce38413ceea..53f4429e71a 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -8388,6 +8388,11 @@ syms_of_alloc (void) { DEFVAR_INT ("gc-cons-threshold", gc_cons_threshold, doc: /* Number of bytes of consing between garbage collections. + +If Emacs is built with the new MPS-based garbage collector, this +variable has no effect. With the traditional garbage collector, the +effects of this variable are described below. + Garbage collection can happen automatically once this many bytes have been allocated since the last garbage collection. All data types count. @@ -8402,6 +8407,11 @@ See also `gc-cons-percentage'. */); DEFVAR_LISP ("gc-cons-percentage", Vgc_cons_percentage, doc: /* Portion of the heap used for allocation. + +If Emacs is built with the new MPS-based garbage collector, this +variable has no effect. With the traditional garbage collector, the +effects of this variable are described below. + Garbage collection can happen automatically once this portion of the heap has been allocated since the last garbage collection.