GNU bug report logs - #31750
simplify and tune Emacs stack-related allocation

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Fri, 8 Jun 2018 02:29:01 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 31750 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Colascione <dancol <at> dancol.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 31750 <at> debbugs.gnu.org
Subject: Re: bug#31750: simplify and tune Emacs stack-related allocation
Date: Thu, 7 Jun 2018 20:20:59 -0700
On 06/07/2018 07:27 PM, Paul Eggert wrote:
> While looking into the Emacs garbage collector's stack-overflow problems 
> I noticed several opportunities for improving performance and 
> simplifying the code in minor ways. I plan to install the attached 
> patches to take advantage of these opportunities; although they don't 
> address stack overflow,

One can also dream of the lisp evaluator doing escape analysis and stack 
allocation.

> they can be thought of as a first, cleanup step 
> toward addressing stack overflow.

Are you thinking along the same lines I was thinking of in my proposal 
to address GC safety?

> Overall these patches trim about 250 lines from the C source code, and 
> should improve efficiency by not creating objects on the heap to handle 
> stack-related events such as implementing save-excursion. This patch 
> also removes primitives like 'free_misc' that ask for trouble by 
> second-guessing the garbage collector. I'm filing this as a bug report 
> in order to give the patches a bit of time to cool before installing. 
> Comments welcome, as usual.
> 




This bug report was last modified 6 years and 346 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.