From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: SIGPROF + SIGCHLD and igc Date: Wed, 25 Dec 2024 10:43:12 +0100 Message-ID: References: <87o713wwsi.fsf@telefonica.net> <87ldw7fwet.fsf@protonmail.com> <87a5cnfj8t.fsf@protonmail.com> <86seqe4j4f.fsf@gnu.org> <87ttaucub8.fsf@protonmail.com> <87pllicrpi.fsf@protonmail.com> <864j2u442i.fsf@gnu.org> <87ldw55w28.fsf@gmail.com> <87r05wi0bi.fsf@gmail.com> 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="29956"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , pipcet@protonmail.com, ofv@wanadoo.es, emacs-devel@gnu.org, acorallo@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 25 10:44:13 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 1tQNw5-0007ij-CC for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Dec 2024 10:44:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQNvG-00076R-Rn; Wed, 25 Dec 2024 04:43: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 1tQNvC-00075g-Vg for emacs-devel@gnu.org; Wed, 25 Dec 2024 04:43:19 -0500 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQNvA-0005At-SB; Wed, 25 Dec 2024 04:43:18 -0500 Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-aaec111762bso591975866b.2; Wed, 25 Dec 2024 01:43:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735119794; x=1735724594; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Nvob2fE8ChUWc5xsIbGviXm0rmpmoxLo1MVYwFLhV1w=; b=K/8DbSW6jOwNtjggEubNKKmPHWHl8JENxZTd1bIp5cPTqt4GMbKmHf0UuJjLDSt/MP 0htD1/7/HgjpcnN/G6S4D/xybngTMtf9HD/6+fBJAGoEpy0CFZAkCCb693hS59h9y0eo zGqV8dbf5Aij96IVB+N2WazzuqjfbhDN3vQCSo2RrSoAg+tifs0EIaS/PTUlgj9rm3IF klvJxPda07bAsfTahEzZJ2r2Qjzpj9QMYAge61k5Utuzwi4ByUrJc5HyfNz521GhgXrG Tkf/bYI3cK9fx6hl18kQT6CbyNmiz61rpiUz0NE7ceLtKvqbjnuTyxN3NFlrnfgDmW/B RSrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735119794; x=1735724594; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Nvob2fE8ChUWc5xsIbGviXm0rmpmoxLo1MVYwFLhV1w=; b=t0oGOuGeoAsZDCrXP2RCmnYsEo6cGp/c3qJD4C6HL7Sbc9wlD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K2l43/aE/bqKlMgYCugHDcA== X-Received: by 2002:a17:907:7f88:b0:aac:2297:377d with SMTP id a640c23a62f3a-aac33683329mr1495024366b.52.1735119793982; Wed, 25 Dec 2024 01:43:13 -0800 (PST) Original-Received: from pro2 (p200300e0b73d6f00401d1c7c2fc22e2d.dip0.t-ipconnect.de. [2003:e0:b73d:6f00:401d:1c7c:2fc2:2e2d]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0f015b1asm777448966b.148.2024.12.25.01.43.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Dec 2024 01:43:13 -0800 (PST) In-Reply-To: <87r05wi0bi.fsf@gmail.com> (Helmut Eller's message of "Wed, 25 Dec 2024 10:22:41 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62e.google.com 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:327064 Archived-At: Helmut Eller writes: > On Tue, Dec 24 2024, Gerd M=C3=B6llmann wrote: > > [...] >>>> - Lisp allocation in signal handlers cannot exist because alloc.c is n= ot >>>> reentrant which means we would crash with the old GC. We don't need >>>> anything extra for that in igc. > [...] >> BTW, do you agree with my analysis that Lisp allocations can't possibly >> exist in signal handlers today? > > I don't know alloc.c well enough to make a judgment. This comment for > XMALLOC_BLOCK_INPUT_CHECK seems to say that signal handlers used to > allocate but no longer do: > > If compiled with XMALLOC_BLOCK_INPUT_CHECK, define a symbol > BLOCK_INPUT_IN_MEMORY_ALLOCATORS that is visible to the debugger. > If that variable is set, block input while in one of Emacs's memory > allocation functions. There should be no need for this debugging > option, since signal handlers do not allocate memory, but Emacs > formerly allocated memory in signal handlers and this compile-time > option remains as a way to help debug the issue should it rear its > ugly head again. */ > > Helmut Thanks. Stefan Monnier seems to have added that 2012, judging from git grep in the ChangeLogs, and it reads as if it has something to do with SYNC_INPUT, which I think means no longer doing X event handling in a SIGIO handler. And it seems to be no longer in use. XMALLOC_BLOCK_INPUT_CHECK appears nowhere, and MALLOC_BLOCK_INPUE is always a no-op. alloc.c could need some love. Anyway. Just looking at Fcons wrt async-signal-safety, makes me pretty sure.