From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Some experience with the igc branch Date: Fri, 27 Dec 2024 15:01:11 +0000 Message-ID: <87h66p5fy6.fsf@protonmail.com> References: <87o713wwsi.fsf@telefonica.net> <86zfkjznat.fsf@gnu.org> <86ldw2zy6s.fsf@gnu.org> Reply-To: Pip Cet Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18320"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , Eli Zaretskii , ofv@wanadoo.es, emacs-devel@gnu.org, eller.helmut@gmail.com, acorallo@gnu.org To: =?utf-8?Q?Gerd_M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 27 16:33:08 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tRCKq-0004Y3-DM for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Dec 2024 16:33:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRCKZ-0005Bc-5f; Fri, 27 Dec 2024 10:32:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRBq4-00052G-U7 for emacs-devel@gnu.org; Fri, 27 Dec 2024 10:01:21 -0500 Original-Received: from mail-40131.protonmail.ch ([185.70.40.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRBq3-0007ca-Dh; Fri, 27 Dec 2024 10:01:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1735311676; x=1735570876; bh=TXOlRe+bee6pg0MOly2XiZkOTNw0mhe41fQs3ufKwGw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=ThdJJWky9bNsYnL70nZ+L/3XdIcr+sLRj/+/4Bs7WETYt7Ukr6miQmwfeVSgb5P4Z o7c7l9cYF2GwMKDVyNO4BDBHHgIGYwkzx1hcOidWeT2Uv5oqbil+U1ycuBpK08MJY1 WbxkWbtohaBECdIwP6Dr76R/VExx3sVWI/wCL6qxXFhoKtXKymtj7EmG5ZJjWteJQH 5ZTp4cwHIXOCg0q8a9TyfkVg/5Pt8vuaux3k0aP6Az9WWLxC47PprlJTzKZEGBZiRs 3ktF3XpxXQ11srZ09eXMLX6+prXya3h5uhDZY7mNBFRJLIhDHRkvW0uB5agiP/XaR+ Hb4bG0bN2kOOw== In-Reply-To: Feedback-ID: 112775352:user:proton X-Pm-Message-ID: fc439321b35b76700d6680eda1848cecc66c92fe Received-SPF: pass client-ip=185.70.40.131; envelope-from=pipcet@protonmail.com; helo=mail-40131.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 27 Dec 2024 10:32:30 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327206 Archived-At: Gerd M=C3=B6llmann writes: > Gerd M=C3=B6llmann writes: > >> I've reached the point where I don't know what else to explain. Could >> always be improved, of course, and so on. Please find attached, with >> request for feedback. > > Ahem, just remembered that I had already an admin/igc.org in the branch, > so I've now replaced that with what I've written. Thank you very much! > - Concurrent. The GC runs in its own thread. There are no explicit > calls to start GC, and Emacs doesn't have to wait for the GC to > complete. I don't think that's true right now (it is what I want for Christmas, though). On GNU/Linux, the GC usually runs on the main thread. On macOS, the GC can run on the main thread (allocation) or on the SIGSEGV handler thread (memory barriers); in both cases, the main thread has to wait for it to complete. I'm not sure it's ever useful to make the assumption that GC isn't concurrent: it is very hard to do so, but it is possible. Maybe Eli knows more; I posted a patch to force concurrent GC for debugging a while ago, and Eli told me not to because it would produce false positives. I'm not so sure about the "false" part now. Pip