From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: Return value of finished threads Date: Sat, 21 Jul 2018 20:18:31 -0600 Message-ID: <87y3e42etk.fsf@tromey.com> References: <87h8kuq7kf.fsf@gmx.de> <87h8kt3hcj.fsf@tromey.com> <87wotphqre.fsf@gmx.de> <87lga44u14.fsf@tromey.com> <874lgsivam.fsf@gmx.de> <87r2jwxl04.fsf@posteo.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532225834 32581 195.159.176.226 (22 Jul 2018 02:17:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Jul 2018 02:17:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) Cc: Tom Tromey , Michael Albinus , emacs-devel@gnu.org To: Brett Gilio Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 22 04:17:10 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fh3vp-0008N3-Sf for ged-emacs-devel@m.gmane.org; Sun, 22 Jul 2018 04:17:10 +0200 Original-Received: from localhost ([::1]:54549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fh3xw-0005fh-Re for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2018 22:19:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fh3xG-0005fQ-NI for emacs-devel@gnu.org; Sat, 21 Jul 2018 22:18:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fh3xC-0004Fl-Nk for emacs-devel@gnu.org; Sat, 21 Jul 2018 22:18:38 -0400 Original-Received: from gateway23.websitewelcome.com ([192.185.47.80]:40767) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fh3xC-0004FJ-EV for emacs-devel@gnu.org; Sat, 21 Jul 2018 22:18:34 -0400 Original-Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway23.websitewelcome.com (Postfix) with ESMTP id ED17AF23D for ; Sat, 21 Jul 2018 21:18:32 -0500 (CDT) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id h3xAfQNAwRPojh3xAfxfKK; Sat, 21 Jul 2018 21:18:32 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=luAQvdeVLZC2uiqW6gywsuscGDtA075gJ1Ycfgtb66A=; b=anCt2y7mQgbMlUoWj8AryHvVBo ZzExK/FpndAYGh3FPN6rBAR3hVnqB2IPzCBgHNO+nzAD5YJu6m961H1V3xfRNnzNcOFtpDrzkSjyr 9ZADuLqgeDICOVGqcs+ZQuscl; Original-Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:57810 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fh3xA-003MhJ-L8; Sat, 21 Jul 2018 21:18:32 -0500 X-Attribution: Tom In-Reply-To: <87r2jwxl04.fsf@posteo.net> (Brett Gilio's message of "Sat, 21 Jul 2018 17:49:15 -0500") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.85.72 X-Source-L: No X-Exim-ID: 1fh3xA-003MhJ-L8 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-85-72.hlrn.qwest.net (bapiya) [75.166.85.72]:57810 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.47.80 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227649 Archived-At: >>>>> "Brett" == Brett Gilio 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