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: Collecting markers with MPS Date: Wed, 24 Apr 2024 16:32:04 +0300 Message-ID: <86jzkm3mzv.fsf@gnu.org> References: <87cyqfjk6n.fsf@gmail.com> <86sezb2oj2.fsf@gnu.org> <874jbrjg04.fsf@gmail.com> <86o79z2h7y.fsf@gnu.org> 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="19830"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eller.helmut@gmail.com, emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 24 15:33:02 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 1rzck6-0004jU-RX for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Apr 2024 15:32:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzcjK-0000fR-01; Wed, 24 Apr 2024 09:32:10 -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 1rzcjI-0000fG-Qk for emacs-devel@gnu.org; Wed, 24 Apr 2024 09:32:08 -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 1rzcjI-0007Hc-3U; Wed, 24 Apr 2024 09:32:08 -0400 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=F5e/0QhVjQr0coqx9zz1zVVnOa30t2jjXGUJziNwI54=; b=Rs1PRDOjlq+piYqsof/7 Af1kBTCFDrk0jb3U0714x0n6rAfBwViS8eZtF2mDOPi6Y///FbBmk90vC4gfl7gdPV+2UrKZnsWg8 WBQ0B4KByRRcc59UL40qNdcMrqNQ1ilUIDurm7h3qXUBmBVK6CvrvXb7Ywwho8rjUIo3vp9fxQc3W I/8HVMNXeP5b5ENP/WZf0EHiwQsY+q82MwtC3atFum5S//xobzJWZzY8iAoMC9HMSyB3G/zp4JVGK klZWpZeKgtkHPjJ40jLiauPdSlYwTz7ZjtQlFFAsAiU3FBqOCFbg425P1PxOVBPlaJr35Vm/RxmGR EHVfj51SL8S7WA==; In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Wed, 24 Apr 2024 12:58:23 +0200) 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:318029 Archived-At: > From: Gerd Möllmann > Cc: Helmut Eller , emacs-devel@gnu.org > Date: Wed, 24 Apr 2024 12:58:23 +0200 > > Gerd Möllmann writes: > > > Eli Zaretskii writes: > > > >> Can't the new GC tell us which markers are unreferenced? > > > > I'm afraid no. At least I haven't seen it mentioned in the docs. Does this mean MPS doesn't allow a user-defined function to be called when some object is found unreferenced? I'd assume such callbacks are available, since some objects need custom code to dispose of. > Err, and the marker would be references from the list anyway... Maybe I don't understand the problem we are talking about. Is this about unchain_dead_markers, which is called from sweep_buffers? If so, how are non-dead markers currently identified during the mark phase?