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: Some experience with the igc branch Date: Wed, 25 Dec 2024 14:52:33 +0200 Message-ID: <86bjwz2acu.fsf@gnu.org> References: <87o713wwsi.fsf@telefonica.net> <864j2u442i.fsf@gnu.org> <87ldw6as5f.fsf@protonmail.com> <86o7112rnq.fsf@gnu.org> <867c7p2nz4.fsf@gnu.org> <87y104aih6.fsf@protonmail.com> <87r05wgezn.fsf@gmail.com> 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="34829"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 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 13:53:00 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 1tQQsm-0008v5-7h for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Dec 2024 13:53:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQQsS-0007rN-Pz; Wed, 25 Dec 2024 07:52:40 -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 1tQQsQ-0007r7-Ep for emacs-devel@gnu.org; Wed, 25 Dec 2024 07:52:38 -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 1tQQsP-00053D-7k; Wed, 25 Dec 2024 07:52:37 -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=lkC12CCoK8if0mo1SYQbM5rYmsLMLtg/U4Ibs6KjTX0=; b=TZ3Q1aPZbraM83gOaJTK oN9f3fDYonb+2Fprhai3veKPsSMVFyaiRr+YnBInY6b69hMgHq3p18xU4bm8BmY8TDTOYxwGKougY JaGkxeS70ZxTXrVR0wXvMJ1Y8Qrfl388qZToU7wANKnYjZMge6AOCUvuqM00pEvWJDq1rnjUmS3E3 hgkaAoKk3TSB1hlnhQceu78HTtvKPXxJjdjUFKgay9bFR0I4+ZjRDGlu78iis88i/06KoHphkev97 Ppv9mZdkY6sBa/9tHZm4iAqEY1P8jj6D4QPORQznkrPaF6Ayfi73Ju6xQHkDC03xBDgLSnQ3+QpsR QaswA/NLFYoE6Q==; In-Reply-To: <87r05wgezn.fsf@gmail.com> (message from Helmut Eller on Wed, 25 Dec 2024 12:48:44 +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:327084 Archived-At: > From: Helmut Eller > Cc: Pip Cet , Eli Zaretskii , > ofv@wanadoo.es, emacs-devel@gnu.org, acorallo@gnu.org > Date: Wed, 25 Dec 2024 12:48:44 +0100 > > On Wed, Dec 25 2024, Gerd Möllmann wrote: > > > Pip Cet writes: > > > >> I don't think that's the problem. The problem is that signals can > >> interrupt MPS, on all platforms. > [...] > > And I don't think that's right :-). It's completely right that in the > > SIGPROF handler everything can be inconsistent. That's true both for MPS > > and Emacs. For example, the bindings stack (specpdl) may be inconsistent > > when SIGPROF arrives. Literally everything we do in the SIGPROF runs the > > risk of encountering inconsistencies. > > The SIGPROF handler copies part of the potentially inconsistent state to > the profiler log. That same potentially inconsistent profiler log is > used later, outside the signal handler. Sounds like a problem to me. > Is it not? Or is the probability for inconistencies being copied so low > that we ignore it? Or maybe the profiling code is robust in the face of these inconsistencies?