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 16:24:22 +0100 Message-ID: <87v7v1kxcp.fsf@gmail.com> References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> <87h66loc17.fsf@gmail.com> <878qrxoayj.fsf@gmail.com> <8734i5o6wc.fsf@gmail.com> <87cyh9mpn5.fsf@gmail.com> <874j2l1hei.fsf@protonmail.com> <874j2lmd37.fsf@gmail.com> <86o70tnqwx.fsf@gnu.org> 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="13231"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: pipcet@protonmail.com, gerd.moellmann@gmail.com, spd@toadstyle.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 30 16:25:17 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 1tSHdt-0003ES-H6 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Dec 2024 16:25:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSHd8-0001HO-SC; Mon, 30 Dec 2024 10:24:30 -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 1tSHd4-0001Ca-OC for emacs-devel@gnu.org; Mon, 30 Dec 2024 10:24:27 -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 1tSHd3-0001Ke-6o; Mon, 30 Dec 2024 10:24:26 -0500 Original-Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-aa66c1345caso367873666b.3; Mon, 30 Dec 2024 07:24:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735572263; x=1736177063; 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=soED7ZqC1qnP7C73E3HLpHwix35oL9/cAaLohsVQdYs=; b=NezZid0ibR/XjPgmklTKKwPo33x+3IgZXdFerhTsYYfeA2tit8t3zSYwSpM9c2FL9d G5c3+1ktPA7meAhxlocmS5jqQBplgjTFCVKLKx2JUm+oyWwwC4KyJ2niXoIksZMv2KUI sr0VLFduKuDQgnvEby8QWblS4ZZg7VYy6ih2enVQpMvhqgNWAPBB9HEfUxfeRx3xB9ol aRg1ASiDZGZcYikwbB4/iUcAtelTOFWyL50xIi1+sdDVY2SI5hVypKT77yMl7CRBWwRm zKQgO168mknSPreT86eoeXZe6K9GFnXyOlN/jEdWeXMa+NVr4ZAfv7kHJJ2gTpRw/7Fc FumA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735572263; x=1736177063; 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=soED7ZqC1qnP7C73E3HLpHwix35oL9/cAaLohsVQdYs=; b=JQImpGlgihngemwbGf+fPR8tN8q94wFSQ33BfWz5BGzmIc7DIP4wRMO05Rqyt4RoOp 28K6tPf8RpySGbS728O2mNi+P1yAoPlzWpgIHCjMgB+jHHLWc0YhsQQNkcslCggE6tUq 6gwJdVzyS8W0KEkhSHyfK7e7CZD8jLGriR6dsju3iRzw3BDRhjuKouoc6k5LEcizTXgF EBYVlZYe8a+77M6T1cURWbCHtANlhhybuVoVvD/sqW8ZTW75eRUyyO57oLbkbahCHYty uv8VjKcUHO4TeIF55lzz8MuytIusYKSXis1znijg4OmBw6j4UqI6hveVQ22tAqhK9yQ4 aAsw== X-Forwarded-Encrypted: i=1; AJvYcCWonkktOS6GmEmy0RbWVi1JJsFcHr3D5XsxEm7otWCqJx1cg/FV0+/d5AjKQXEymGg5crKjLq18yjBHKA==@gnu.org X-Gm-Message-State: AOJu0Yz62Fb9/x820LWRQeK86na4SG05OWFgFTEq9naFE+Km5/UEFyty SvqSHTKvkPwRBbqkr6En05KgSVgPooUADyYjZdeTcS3O5ENNttEdD3+l2CAq X-Gm-Gg: ASbGncs8VKXDhq3lUF0Lr5pymAL/CZIjgS2WSrBnA/AMKLJTn6n7ICvZWanLH4w3h2D CK+E/CnfuWu/B5/l/6UFEPKoGd0ElhGJ9ERNRphGB6PAdcDnos/+Cz9zua0VRNThSyOgu9tnR/J vgsjUl/xRC3bbU/3JBlCObbrU1CzpMiKVCNZX8i1mxgvpuizf16fP83a5F5LDUHiPt3lvJT76a8 qZWrIWZJ3Egq5MK0Gt02KDjygpUZCmnQDf5gFepqAfmQUititqrzpQ= X-Google-Smtp-Source: AGHT+IHxlPpyOUlL6YctykhTqitiwRv+b2FKxV9I4LrAJeK8wQPG5E2T3XJrO55cuaGFjB0RBued5A== X-Received: by 2002:a17:907:3d9f:b0:aa6:7df0:b179 with SMTP id a640c23a62f3a-aac334422cfmr2800797066b.22.1735572263304; Mon, 30 Dec 2024 07:24:23 -0800 (PST) Original-Received: from caladan ([31.177.115.143]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0e8953b6sm1495715866b.65.2024.12.30.07.24.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2024 07:24:22 -0800 (PST) In-Reply-To: <86o70tnqwx.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 30 Dec 2024 17:15:10 +0200") 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:327441 Archived-At: On Mon, Dec 30 2024, Eli Zaretskii wrote: >> From: Helmut Eller >> Cc: Gerd M=C3=B6llmann , Eli >> Zaretskii , >> spd@toadstyle.org, emacs-devel@gnu.org >> Date: Mon, 30 Dec 2024 15:59:08 +0100 >>=20 >> if (mps_arena_busy ()) >> plog->gc_count =3D saturated_add (plog->gc_count, count); >> else >> record_backtrace (plog, count); >>=20 >> is safe. If we don't hold the lock, then mps_arena_busy returns false >> and we can access memory. We are safe even if another thread has >> claimed the lock by the time that we reach record_backtrace: the SIGPROF >> handler will just block until the lock is released. > > Which other thread could have claimed the lock? Any other registered thread that we might have, e.g. the signal_receiver_thread from Pip's proposal. Helmut