From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Make purecopy create hash tables properly Date: Sat, 28 Jan 2017 21:18:44 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485656393 31192 195.159.176.226 (29 Jan 2017 02:19:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2017 02:19:53 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Vibhav Pant Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 29 03:19:45 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXf5R-0005eZ-L0 for ged-emacs-devel@m.gmane.org; Sun, 29 Jan 2017 03:19:25 +0100 Original-Received: from localhost ([::1]:53842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXf5V-0006MY-7X for ged-emacs-devel@m.gmane.org; Sat, 28 Jan 2017 21:19:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXf4q-0006MT-RY for emacs-devel@gnu.org; Sat, 28 Jan 2017 21:18:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXf4n-0001vP-Md for emacs-devel@gnu.org; Sat, 28 Jan 2017 21:18:48 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:50232) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cXf4n-0001vJ-Fs for emacs-devel@gnu.org; Sat, 28 Jan 2017 21:18:45 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DeLgAu3EVY/0gvq8BdGwEBAQMBAQEJAQEBgzgBAQEBAR+EW4VUnAImAZJHgg+CCIYcBAICghFCEgECAQEBAQEBAWIohGkBBAFWIxALNBIUGA0kiHoIrRSLRAEBAQcCJYsZiikFj3yKapJziCeGOpIPJgcpeBMOg1sdgXsgiS0BAQE X-IPAS-Result: A0DeLgAu3EVY/0gvq8BdGwEBAQMBAQEJAQEBgzgBAQEBAR+EW4VUnAImAZJHgg+CCIYcBAICghFCEgECAQEBAQEBAWIohGkBBAFWIxALNBIUGA0kiHoIrRSLRAEBAQcCJYsZiikFj3yKapJziCeGOpIPJgcpeBMOg1sdgXsgiS0BAQE X-IronPort-AV: E=Sophos;i="5.33,749,1477972800"; d="scan'208";a="290852338" Original-Received: from 192-171-47-72.cpe.pppoe.ca (HELO pastel.home) ([192.171.47.72]) by smtp.teksavvy.com with ESMTP; 28 Jan 2017 21:18:45 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 708C565736; Sat, 28 Jan 2017 21:18:44 -0500 (EST) In-Reply-To: (Vibhav Pant's message of "Sat, 28 Jan 2017 20:06:09 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:211717 Archived-At: >> Unless we arrange to keep track of those hash-tables >> which are referenced from purespace. We already do that for symbols, so >> maybe we can extend/generalize that mechanism (probably a good idea). > Where is this implemented? I could use this to do the same for hash tables. Currently, it's implemented via the `pinned` bit in the symbol objects, plus the mark_pinned_symbols function. You could introduce a `pinned_objects` array instead. Stefan