From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Failing to GC killed buffers considered harmful Date: Tue, 31 Mar 2020 17:09:32 +0300 Message-ID: <83sgho1uqr.fsf@gnu.org> References: <838sjj5jg9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="54763"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pipcet@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 31 16:11:07 2020 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 1jJHbf-000EA3-3j for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Mar 2020 16:11:07 +0200 Original-Received: from localhost ([::1]:38688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJHbe-0001Zw-1y for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Mar 2020 10:11:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48369) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJHZz-000738-Bx for emacs-devel@gnu.org; Tue, 31 Mar 2020 10:09:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jJHZx-0000ug-HW; Tue, 31 Mar 2020 10:09:21 -0400 Original-Received: from [176.228.60.248] (port=4499 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jJHZw-0003Xc-Ex; Tue, 31 Mar 2020 10:09:21 -0400 In-Reply-To: (message from Stefan Monnier on Mon, 30 Mar 2020 14:32:30 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:246097 Archived-At: > From: Stefan Monnier > Date: Mon, 30 Mar 2020 14:32:30 -0400 > Cc: Eli Zaretskii , Daniel Colascione , > emacs-devel@gnu.org > > > FWIW, maybe we should get rid of all_buffers. > > AFAICT the only reason we need it is to unmark the buffers during the > > sweep phase, and we could allocate buffers like any other > > pseudovector instead. > > The patch below seems to work. > > The only worrisome part I think is that `live_buffer_holding` allowed > pointers into buffer objects, whereas `live_vector_p` only treats > pointers to the beginning of the object as a valid reference. > > Not sure why buffers would be more likely to have valid pointers into > them (and can't remember discussions about that either) Pointers to buffer text come to mind. > - if (!pdumper_object_p (buffer)) > - XUNMARK_VECTOR (buffer); Why is this part being removed?