emacs-devel
[Top][All Lists]
Advanced

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

Re: Return value of finished threads


From: Brett Gilio
Subject: Re: Return value of finished threads
Date: Mon, 23 Jul 2018 13:02:17 -0500
User-agent: mu4e 1.0; emacs 27.0.50


Tom Tromey writes:

"Brett" == Brett Gilio <address@hidden> writes:

Brett> I was wondering of this, myself. Is the garbage collector of Brett> emacs lisp similar to the Boehm collector style of Guile? Does Brett> anybody have any information to pass along on the emacs lisp GC?

The Emacs GC is a fairly ordinary mark/sweep GC. I'd say it is nearly the most straightforward garbage collector you could imagine; or at
least started that way before features like weak hash maps and
finalizers were added :)

It is vaguely similar to the Boehm GC. The Boehm GC is best known for doing conservative marking (but it has several modes and isn't limited to this); whereas the Emacs GC conservatively marks the stack but not
the heap.

If you want to learn more about the Emacs GC in particular, alloc.c is not that hard to read. Start with the function garbage_collect_1.

If you need some background in garbage collection in general, the Jones
& Lins book "Garbage Collection" is very good.

Tom


Thank you Tom, I read through the GC and it is mostly pretty straight
forward, with some nice quirks.


--
Brett M. Gilio
Free Software Foundation, Member
https://parabola.nu | https://emacs.org



reply via email to

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