emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 49137311a4: Fix previous -batch change for gc-cons-percentage


From: Lars Ingebrigtsen
Subject: master 49137311a4: Fix previous -batch change for gc-cons-percentage
Date: Tue, 21 Jun 2022 09:11:44 -0400 (EDT)

branch: master
commit 49137311a432a0c3c4afef1ae7d463cd4c3613ae
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix previous -batch change for gc-cons-percentage
    
    * src/emacs.c (main): Reset the default for gc-cons-percentage in
    interactive Emacs.
---
 src/emacs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/emacs.c b/src/emacs.c
index c602157da1..37c6c76e7a 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1947,8 +1947,7 @@ Using an Emacs configured with --with-x-toolkit=lucid 
does not have this problem
   /* Do less garbage collection in batch mode (since these tend to be
      more short-lived, and the memory is returned to the OS on exit
      anyway).  */
-  if (noninteractive)
-    Vgc_cons_percentage = make_float (1.0);
+  Vgc_cons_percentage = make_float (noninteractive? 1.0: 0.1);
 
   no_loadup
     = argmatch (argv, argc, "-nl", "--no-loadup", 6, NULL, &skip_args);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]