emacs-devel
[Top][All Lists]
Advanced

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

Re: [RFC, experimental] save_{excursion,restriction}


From: Chong Yidong
Subject: Re: [RFC, experimental] save_{excursion,restriction}
Date: Fri, 27 Jul 2012 11:51:24 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Dmitry Antipov <address@hidden> writes:

> It's worth trying to redesign save-restriction and save-excursion to avoid
> allocating Lisp data. I tried some hacks for save-excursion, and it's quite
> surprising: initially, running (while t (scroll-up) (sit-for 0.05)) over
> just loaded xdisp.c with font-lock enabled asks for 600 GCs, and with this
> patch it's just 350.

With your revision 109221,

emacs -Q
M-x delete-trailing-whitespace RET
M-x garbage-collect RET
---->
Breakpoint 1, abort () at emacs.c:365
365       kill (getpid (), SIGABRT);
(gdb) bt
#0  abort () at emacs.c:365
#1  0x00000000005eb60b in mark_object (arg=26719011) at alloc.c:6167
#2  0x00000000005eb6da in mark_object (arg=19905638) at alloc.c:6185
#3  0x00000000005eb6da in mark_object (arg=19903334) at alloc.c:6185
#4  0x00000000005e92d8 in mark_maybe_object (obj=19903334) at alloc.c:4532
#5  0x00000000005e9637 in mark_memory (start=0x7fffffffc688, 
    end=0x7fffffffdf78) at alloc.c:4695

Please fix this ASAP or revert (the crashes are frequent and annoying).
Next time, I suggest running with such changes for a few days to weed
out this kind of obvious problem.



reply via email to

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