From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Failing to GC killed buffers considered harmful Date: Mon, 30 Mar 2020 13:02:25 -0400 Message-ID: References: <838sjj5jg9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="54465"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , Daniel Colascione , emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 30 19:05:10 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 1jIxqY-000E67-3B for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Mar 2020 19:05:10 +0200 Original-Received: from localhost ([::1]:53230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIxqW-0006Y9-WA for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Mar 2020 13:05:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56115) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIxo8-0002mH-LZ for emacs-devel@gnu.org; Mon, 30 Mar 2020 13:02:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIxo6-0005sY-83 for emacs-devel@gnu.org; Mon, 30 Mar 2020 13:02:40 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:44131) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jIxo3-0005nH-7P; Mon, 30 Mar 2020 13:02:35 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 2A9C2100609; Mon, 30 Mar 2020 13:02:34 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 03CD8100447; Mon, 30 Mar 2020 13:02:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1585587752; bh=lDCNXElTYLBdz1391APJWf0x8kpvNt4BcKxVIwMaGT8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=gyR1yg8Pdp1JWOGHIQGzUBcGiA71LmHcAXsyfn3ecOLjJxOQ00pEtu5of/Xc+o8S+ F/zm2ksB7dBtHcY/ZOkZLZV6xYTdxOQJjxyC0kzv12A7i/7Wy6Wf0ksRyPfR9onQbB qxB1DsJACQfNnbeuliObnrGQRc552jdVE2g6hXNUlkqdtCPFY79vwjCR+rZzi89jo8 NTJD8X/Cz5MWK4o7gHUrNZesyr7h6e9qog9EV7kju5pWJJ3kCq5zdoUZwQcWWzVnIJ i08irPrwL1VSTKHqzcNQfASkf0/ESat7+9kw+7VysjHsfYU9qG/gjw29X8ZmPSm3Wt ijq7Kq1+rc/6w== Original-Received: from alfajor (unknown [104.247.241.114]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BF09B1200E8; Mon, 30 Mar 2020 13:02:31 -0400 (EDT) In-Reply-To: (Pip Cet's message of "Sun, 29 Mar 2020 16:46:03 +0000") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:246031 Archived-At: > The problem appears to be that "all_buffers" points to a killed > buffer, and is remembered by pdumper. 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. Stefan