From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#36649: 27.0.50; pure space and pdumper Date: Sun, 21 Jul 2019 00:28:11 -0700 Organization: UCLA Computer Science Department Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="75233"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Cc: 36649@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 21 09:29:08 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hp6HK-000JHT-Pr for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jul 2019 09:29:06 +0200 Original-Received: from localhost ([::1]:54906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hp6HJ-0005Yh-Po for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jul 2019 03:29:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43889) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hp6HH-0005Yb-2H for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2019 03:29:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hp6HG-0001AY-8o for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2019 03:29:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49282) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hp6HG-0001AQ-5R for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2019 03:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hp6HG-0005ZA-0Y for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2019 03:29:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Jul 2019 07:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36649 X-GNU-PR-Package: emacs Original-Received: via spool by 36649-submit@debbugs.gnu.org id=B36649.156369410121332 (code B ref 36649); Sun, 21 Jul 2019 07:29:01 +0000 Original-Received: (at 36649) by debbugs.gnu.org; 21 Jul 2019 07:28:21 +0000 Original-Received: from localhost ([127.0.0.1]:58103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hp6Gb-0005Y0-6B for submit@debbugs.gnu.org; Sun, 21 Jul 2019 03:28:21 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:42596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hp6GY-0005Xk-LO for 36649@debbugs.gnu.org; Sun, 21 Jul 2019 03:28:19 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5B6881626E0; Sun, 21 Jul 2019 00:28:12 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0dSVaBg6s1TK; Sun, 21 Jul 2019 00:28:11 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A94461626ED; Sun, 21 Jul 2019 00:28:11 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id K3zOPu-2mNeW; Sun, 21 Jul 2019 00:28:11 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7E5AC1626E0; Sun, 21 Jul 2019 00:28:11 -0700 (PDT) Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163506 Archived-At: > I think we have the following options: > > 1. remove pure space entirely > 2. remove pure space, but leave PURE_P and CHECK_IMPURE as reminders > to do something about it. > 3. move pure space to BSS > 4. xmalloc() pure space, only when needed > 5. modify pdumper to mark and recognize pure objects > 6. do nothing and accept the wastefulness I suggest (1), since it will result in simpler code. Although (2) would be OK too, if we ever introduce immutable objects it's likely that PURE_P and/or CHECK_IMPURE will just get in the way anyway. We can see a hint of that in my patch today that added temporary immutability to hash tables to fix a core-dump bug.