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: MPS: profiler Date: Fri, 21 Jun 2024 14:29:12 +0300 Message-ID: <86bk3ulek7.fsf@gnu.org> References: <87v823xvq1.fsf@localhost> <86cyobmmhc.fsf@gnu.org> <87r0crxung.fsf@localhost> <87le2zxsqx.fsf@localhost> <8634p6n7jd.fsf@gnu.org> <87tthm3gq2.fsf@gmail.com> <87msneag5u.fsf@localhost> <86r0cqlgvi.fsf@gnu.org> <87ed8qpnqv.fsf@localhost> <86jziilfzh.fsf@gnu.org> <878qyypmne.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26227"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, eller.helmut@gmail.com, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 21 13:29:57 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 1sKcSm-0006Vn-SL for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Jun 2024 13:29:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKcSO-0007i2-4H; Fri, 21 Jun 2024 07:29:28 -0400 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 1sKcSN-0007ht-19 for emacs-devel@gnu.org; Fri, 21 Jun 2024 07:29:27 -0400 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 1sKcSM-0004r3-NH; Fri, 21 Jun 2024 07:29:26 -0400 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=q8QGfDdVP2nh2cMeOppFrKCLUWDQJQASM4zI5NSlsZ4=; b=ega0TYAbZEQ+ yBIwT4zDW654f/cCLpbFF7cGoxv8Dq7qr4a/1B3JXAMIJaPyb3bzF8VXQ91MMUDaSkz7aj0UQtF8F irXRt1M5Q9QJ5XW+yw5CGXLLYDdilEe9SIsAZGHdXjGyIBMvnip4vdnCSB2ntU/Dx4/foC3b7LlPG YeuggE58nbQj6d5i3CQK2KY/ns+dVsLvTKrBL6+Pd75JmdcqcX0gmgE+RdlDmcD7FQ47oGMNNExt4 Q9/riCx798hlC68QqUNeWClpcRu5fNQul+ZOzmrct6Hj8YIRPzslhXpEHBwvPAila2uYGc2FdRbtc Jedg1MW5OcRorvwUHeCSbw==; In-Reply-To: <878qyypmne.fsf@localhost> (message from Ihor Radchenko on Fri, 21 Jun 2024 11:20:53 +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:320392 Archived-At: > From: Ihor Radchenko > Cc: gerd.moellmann@gmail.com, eller.helmut@gmail.com, emacs-devel@gnu.org > Date: Fri, 21 Jun 2024 11:20:53 +0000 > > Eli Zaretskii writes: > > >> Unless I miss something, SIGPROF handler cannot touch the arena to park > >> it or it will lead to problems exactly like the one I encountered. > > > > That depends on what you mean by "park the arena". > > I meant mps_arena_park() as described in > https://memory-pool-system.readthedocs.io/en/latest/guide/lang.html#tidying-up > > mps_arena_park(arena); /* ensure no collection is running */ > > This is the only meaning of park I can see in the docs. We cannot disable GC when we profile a program. It's out of the question.