From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: igc, macOS avoiding signals Date: Sat, 28 Dec 2024 16:31:10 +0200 Message-ID: <86ed1rswup.fsf@gnu.org> References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36806"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spd@toadstyle.org, pipcet@protonmail.com, emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 28 15:31:38 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 1tRXqq-0009QD-H8 for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Dec 2024 15:31:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRXqc-0001fy-Hm; Sat, 28 Dec 2024 09:31:22 -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 1tRXqV-0001fb-AO for emacs-devel@gnu.org; Sat, 28 Dec 2024 09:31:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRXqU-0008NZ-5s; Sat, 28 Dec 2024 09:31:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=R6yVatJ1TuU6xcs+BSAN8hSUbzJQvAWkJR+d5SUEXNA=; b=an4aacdlBubVp5wYWjAu /IIsNgoY+2R6C3mH3l/uxBf4BXt0BKH2hdop713tz96PG2o2qXDhY14w7k+FV4bhIP2HOhvKuLjup lpSgfiUhwBazNrerp2syEEPkgozA1c1G8l5KBRpm0LXUg5SmYbCKdlqg12r/6yopTg9CIe46yFQdF xp+J+og1hcr87LRL2vqsqq/rUekMQ6D8V1PLLrSv2LWJj3k1mWF3U0gYJIH3pMsYSPcmqNDRDJUva 7ErEI2wCQDgubNqrBsH/ATcffkuoHAaHzS1h1O4UHeIROWWU90f61P59wGxHdZwaEjQqflZyQSoDf xJAz2s7S4F/SDg==; In-Reply-To: (message from Gerd =?utf-8?Q?M?= =?utf-8?Q?=C3=B6llmann?= on Sat, 28 Dec 2024 14:28:57 +0100) 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:327271 Archived-At: > From: Gerd Möllmann > Cc: pipcet@protonmail.com, emacs-devel@gnu.org > Date: Sat, 28 Dec 2024 14:28:57 +0100 > > Sean Devlin writes: > > > To be clear, I should make sure to include the above commit in my > > build? Or should I not include it? > > Just let in in. I reverted it only in my Emacs. Can you show that MPS runs GC from a non-main thread? Like, if you set a breakpoint in ArenaEnter, does it ever break on a non-main thread? I've just reviewed all the backtraces we had in our MPS discussions, and all I see there is MPS being triggered either from igc_on_idle or from alloc_impl, but every single time it happens on the main thread, the one where I see the main function that enters recursive-edit. So maybe Pip is right, and MPS always runs in the main (Lisp) thread, even on macOS? Can you catch it on a non-main thread?