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 21:30:06 +0200 Message-ID: <86y0zzr4g1.fsf@gnu.org> References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> <87ldvzg7vi.fsf@protonmail.com> <868qrzsojd.fsf@gnu.org> <87a5cffy8n.fsf@protonmail.com> <864j2nskup.fsf@gnu.org> <87zfkfei1z.fsf@protonmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7319"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spd@toadstyle.org, gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 28 20:30:36 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 1tRcWC-0001ig-Sp for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Dec 2024 20:30:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRcVn-0003zL-Qb; Sat, 28 Dec 2024 14:30:11 -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 1tRcVm-0003yN-3v for emacs-devel@gnu.org; Sat, 28 Dec 2024 14:30:10 -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 1tRcVl-0004f8-2H; Sat, 28 Dec 2024 14:30:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=iwZsYKqcNWXX8nRmAQXfbqkZwoNsMTQFRGC+N7h2YhY=; b=g8AAVrCvhtCp RFiNZU7Pj1Gx0/P+czAls1QMAFQg7cASB7UrvZbycillahqwF8ypyeHqBg7ltY6YXrRIVeqyXwWaT dNQRTpCh2F5dqxwYlR6Tilu+3RbtKe4wjTq4vYPWCOT3GpnVG/IMLN28dILNqCRm6MwsAX+t75OyA QCn29auz69tkj3RhPGx7wp3u1UVr6gveefWHgUFB+PZxjvOdUy1a7GEMkaTl+KbT1vB4CGqpzQL79 Yf+7NoyAsDEZgldV/GGya61Aaq3XwnTrCms4oBinbYnCaApoOVacXNPGBpEVEHRyIgAASGsa2rTfj DaultClCMReNy1WF4+5ugg==; In-Reply-To: <87zfkfei1z.fsf@protonmail.com> (message from Pip Cet on Sat, 28 Dec 2024 19:15:26 +0000) 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:327293 Archived-At: > Date: Sat, 28 Dec 2024 19:15:26 +0000 > From: Pip Cet > Cc: spd@toadstyle.org, gerd.moellmann@gmail.com, emacs-devel@gnu.org > > "Eli Zaretskii" writes: > > > Ah, okay. I note that if we'd block signals when calling MPS and > > unblock on exit, then these delays couldn't have happened, AFAIU. > > We can't do so for SIGSEGV calling into MPS, so this wouldn't fix all > cases. We don't need to block SIGSEGV (or any other fatal signal). We only need to block SIGPROF, SIGALRM and SIGCHLD. > Blocking signals around mps_alloc slows down (make-list 1000000 > nil) by a factor of about 5 (on current GNU/Linux; possibly > significantly more on other operating systems). No, I think only GNU/Linux is affected. You are saying that sigblock is very expensive? Can you measure it?