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: Buffer-/frame-local variables [Was: Re: Make buffer- and frame-locals a misc object] Date: Tue, 21 Aug 2012 13:35:53 -0400 Message-ID: References: <502B7EFB.7030300@yandex.ru> <502BB333.70306@yandex.ru> <502C72CD.2050908@yandex.ru> <502E553C.6090705@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1345598390 9672 80.91.229.3 (22 Aug 2012 01:19:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2012 01:19:50 +0000 (UTC) Cc: Emacs development discussions To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 22 03:19:50 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 1T3zbk-0007Dt-HD for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2012 03:19:44 +0200 Original-Received: from localhost ([::1]:34510 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3zbi-0000g9-W6 for ged-emacs-devel@m.gmane.org; Tue, 21 Aug 2012 21:19:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3zbd-0000ZF-8q for emacs-devel@gnu.org; Tue, 21 Aug 2012 21:19:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3zbc-0007aL-EB for emacs-devel@gnu.org; Tue, 21 Aug 2012 21:19:37 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:49720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3zbc-0007a2-AD for emacs-devel@gnu.org; Tue, 21 Aug 2012 21:19:36 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q7M1JYeY009472; Tue, 21 Aug 2012 21:19:34 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 975C5AE3CA; Tue, 21 Aug 2012 13:35:53 -0400 (EDT) In-Reply-To: <502E553C.6090705@yandex.ru> (Dmitry Antipov's message of "Fri, 17 Aug 2012 18:29:16 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4317=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4317> : streams <803545> : uri <1198787> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:152725 Archived-At: >> Another reason is that until they're initialized, the fields contain >> invalid values, so if the GC sees them we're in trouble, right? > Not quite. In our terms, the core thing for simple generational GC is: I didn't mean to say that a write-barrier during initialization is a bug, only that it can't be necessary since the object is not "GC ready" yet. Stefan