From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: igc, macOS avoiding signals Date: Mon, 30 Dec 2024 20:02:38 +0100 Message-ID: <877c7hyoxd.fsf@gmail.com> References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> <878qrxoayj.fsf@gmail.com> <8734i5o6wc.fsf@gmail.com> <87cyh9mpn5.fsf@gmail.com> <874j2l1hei.fsf@protonmail.com> <874j2lmd37.fsf@gmail.com> <874j2lyz1c.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33477"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= , Eli Zaretskii , spd@toadstyle.org, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 30 20:03: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 1tSL2i-0008av-6X for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Dec 2024 20:03:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSL2N-0003pp-M6; Mon, 30 Dec 2024 14:02:47 -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 1tSL2L-0003pg-Bg for emacs-devel@gnu.org; Mon, 30 Dec 2024 14:02:45 -0500 Original-Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tSL2J-0007kk-Dc; Mon, 30 Dec 2024 14:02:44 -0500 Original-Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-aa68b513abcso1781608066b.0; Mon, 30 Dec 2024 11:02:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735585361; x=1736190161; darn=gnu.org; h=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=cglR/qjng/oPwa6O8AbRviL//S1J1ITw/NKKxjayCdc=; b=DBmDC73eqViH3STqgXOgjyoHoDl2/loJ1qAUsaKVuYAJA3NTRDxqfnem8fO2ajknIq ZYdu4rX09Ae+HoTXSGyEcQsgGUWj7JXIFqIIaDoyd4pbiAze2Plz5CnwUY60DrYpBZ3x R7BOvRiRk6iNpTvce3tRNDmgsXGSC1V4/EJ6/3+0HBpFkgqkLgW5TZTwUrwJ8AgImD2J fJ0gvBEGdLqvDn1H21MnwAByBzyCRs3rqvi3NWLYJ5yFx/3ubsxGVGcxKY1mMfRyu9fx 8Cb7HTrbWekvcY58b785QdJTvtcVQ64zLLNJ7ctlA/kMpofkrtEzEv+nOEe8LbdiJcYJ jj3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735585361; x=1736190161; h=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=cglR/qjng/oPwa6O8AbRviL//S1J1ITw/NKKxjayCdc=; b=WdfayTi0j19Fqc+6QK6kbtZ+MK/mmQYW+ydV0Pj0GuRxr60kxWFkOtst1DXuYyKqmO cRUUJ8q4o3wULjJjVRGVMamTosH8h7OMcvOX5+/HDwAHnZ13JWZH7sAIiYF08rDNYMuD lNud7xjJkoAtfPup++5z0FPBotzO/6H3xfQg4uHEL1TVajMvPQFIeCpqGqQ02BoPALw/ qiM96wV8hnlQei6lfX6yPdUnf6gfFTBilC7DMpF3cTDhaNB4fj4EtZ7Y8SWMrACuC84d WxKQyI0j3PMfbU3u1lnPqDCvYo72prXTsbxywBP3O/UDKv8CYfKhBd9tJP5nyXni1FGZ ndoQ== X-Forwarded-Encrypted: i=1; AJvYcCUyAau5maF+O9/Ivji0ViSLIa66IeOH078bfpdGuFp6s8V9K7+kCCflc9nbISutyM3T4fh9kAJej42RVXg=@gnu.org, AJvYcCXZKawzmwgaLsiJZ1R9/JJiGyB3YyOfnKwwkJ4lbzIRGQL8nnjYEk8IUZVAE7hjLkPNWJ2M@gnu.org X-Gm-Message-State: AOJu0YxORyY92tOBrHSp6izPspGRYeJtDVhZglnKOjI66helQ+0rxZJv 7DjmYkrU75/qIJRoCrbkTarQd26Av7gFrSoWLCEq6Wx/yJK7xEWFDnYjZUsY X-Gm-Gg: ASbGncsB9ChIcktoO0qmBDpk1y5YSv5IpI3S4jcYxQJ5Jh2OGfUuhHijzPDcs4/OVYz l+0Tys8G9upbt4VF1xrNsw/vjiPTjXKOdroNYhfSWpKLpqEgqB/OmIcATSHYrTExpHeVAbpEoxb O3EdwBpLephXzFaK0aY8H/Oa6ggA4v4mSk6Hqm4LguAm4geiabUm6m7T+zeVQOSbYsplII82q9S y1LbBALdBBwWQlaR2fbskczcHkRPLKkkylkF1QaKVTT/2eLFTSAgZA= X-Google-Smtp-Source: AGHT+IG4x6acQEkUHW26O8JZjBa1fu83F4iyLp9jfoXacBEa5W/RcUmyptMTNjiVGzQgdBNPfXaXdg== X-Received: by 2002:a17:906:f5aa:b0:aab:f11f:f360 with SMTP id a640c23a62f3a-aac2874a92cmr3291360066b.2.1735585360307; Mon, 30 Dec 2024 11:02:40 -0800 (PST) Original-Received: from caladan ([31.177.115.143]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0f06542fsm1487863366b.176.2024.12.30.11.02.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2024 11:02:39 -0800 (PST) In-Reply-To: <874j2lyz1c.fsf@protonmail.com> (Pip Cet's message of "Mon, 30 Dec 2024 15:25:13 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=eller.helmut@gmail.com; helo=mail-ej1-x635.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:327465 Archived-At: On Mon, Dec 30 2024, Pip Cet wrote: > IMHO, we now have three solutions that are still in the running (my > order of preference): > > 1. keep the current code and special-case some signals which are needed > for user responsiveness > 2. use the signal serialization thread you proposed > 3. use an allocation thread, but keep SIGSEGV on the main thread I think this is missing: 4. add callbacks to ArenaEnter/ArenaLeave to block/unblock signals Perhaps add 5. (or make it a variant of 1) 5. special-case some performance critical handlers and simplify all others so that they are obviously harmless. The SIGIO handler is an example for a harmless signal handler. handle_alarm_signal seems harmless too. handle_interrupt_signal is definitely not harmless, but may not be preformance critical. So far SIGPROF seems to be the only performance cortical handler. Helmut