From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Reachable killed buffers Date: Thu, 13 Sep 2012 08:47:11 -0400 Message-ID: References: <504848D0.4020908@yandex.ru> <5048D826.3040103@yandex.ru> <5049C400.8070400@gmx.at> <504DB6DD.9030002@yandex.ru> <504E042E.5040100@yandex.ru> <504ECB49.4050509@yandex.ru> <50504349.7090603@gmx.at> <50509262.1070601@cs.ucla.edu> <50509533.9000502@yandex.ru> <50509698.5060108@cs.ucla.edu> <505098FB.1020801@gmx.at> <5050B151.2020304@yandex.ru> <5050CC93.3010506@cs.ucla.edu> <5051645B.9070308@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347540443 31302 80.91.229.3 (13 Sep 2012 12:47:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 12:47:23 +0000 (UTC) Cc: martin rudalics , Dmitry Antipov , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 13 14:47:26 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TC8pK-0007kt-3A for ged-emacs-devel@m.gmane.org; Thu, 13 Sep 2012 14:47:26 +0200 Original-Received: from localhost ([::1]:51439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TC8pG-0007jF-Fo for ged-emacs-devel@m.gmane.org; Thu, 13 Sep 2012 08:47:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TC8pD-0007j6-OE for emacs-devel@gnu.org; Thu, 13 Sep 2012 08:47:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TC8p7-0006iG-Ik for emacs-devel@gnu.org; Thu, 13 Sep 2012 08:47:19 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:34682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TC8p7-0006iC-Em for emacs-devel@gnu.org; Thu, 13 Sep 2012 08:47:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09MCqmt/2dsb2JhbABEDrQDgQiCFQEBBAFWIxALNBIUGA0kiBwFugmQRAOjM4FYgjBV X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="198235070" Original-Received: from 76-10-169-173.dsl.teksavvy.com (HELO pastel.home) ([76.10.169.173]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Sep 2012 08:47:12 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B325359445; Thu, 13 Sep 2012 08:47:11 -0400 (EDT) In-Reply-To: <5051645B.9070308@cs.ucla.edu> (Paul Eggert's message of "Wed, 12 Sep 2012 21:43:07 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153278 Archived-At: >> Arguably, if (part of) that list is shared with some other data >> structure, then we indeed shouldn't remove dead buffers from it. > But the patch doesn't implement that either, right? > If part of the list is shared, but the GC doesn't discover > this until after that code runs, it'll remove dead > buffers from that part. Oops, you're right. So, I think it's OK to remove the dead buffers (like we do now), but indeed the proposed patch wouldn't be good because it would sometimes remove them and sometimes not, depending on the order in which the heap is traversed by the mark phase. Stefan