From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Preview: portable dumper Date: Tue, 29 Nov 2016 09:49:59 -0800 Message-ID: References: <047a67ec-9e29-7e4e-0fb0-24c3e59b5886@dancol.org> <83zikjxt1j.fsf@gnu.org> <727ccd66-3bc3-2a41-7d1d-ef6dae9f0d1e@dancol.org> <7A914757-B1A4-4EEE-9DF0-68EFDDA9A5DB@autodesk.com> <83k2bmxju3.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1480442027 6476 195.159.176.226 (29 Nov 2016 17:53:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2016 17:53:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: burton.samograd@autodesk.com, rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 29 18:53:42 2016 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 1cBmb6-0000Lg-VK for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2016 18:53:41 +0100 Original-Received: from localhost ([::1]:38501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBmbA-0006gz-LV for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2016 12:53:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBmXf-0004m6-NF for emacs-devel@gnu.org; Tue, 29 Nov 2016 12:50:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBmXe-0004UC-VU for emacs-devel@gnu.org; Tue, 29 Nov 2016 12:50:07 -0500 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:53674) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cBmXe-0004T1-M7; Tue, 29 Nov 2016 12:50:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=ToEli1JHAC/Mag/i/ddtgM5ny6XTx1dn/YnXXtw5Oog=; b=YE1HYWpUK3YQ+4LKADYZVYGKwfM77r8VsjLYwSIgjztax8MOXxv0h5kxO90HMxCC7XPgZhmPPIrRoZQ5OL5Ypz26aXPgpnKqWb0OPYMHAqIXXKPslzHXtrkc5qop31Ilf5YOIWdvT4hDZ/riXOoRuDAbMCJ6LK5Y8z/FZVQucU7bs3evdaggiOuJebWgE1HUBmXnlzLKfH6DY14DhJKv2a20isgRAi5J1xVlFSoi79gHkyYVwExVa6ptZXFPORRL5dAs5ZyI+ForvReEg3uiCnLPfgFDNZq4Q51jAemC+3xowBtqCkZX0WzlT3J9ctByOJtmfnnMu22DrsSg7mv4JQ==; Original-Received: from [2620:0:1008:1101:a803:88c3:331:8b1] (helo=dancol-glaptop0) by dancol.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1cBmXd-0002gf-Ov; Tue, 29 Nov 2016 09:50:05 -0800 In-Reply-To: <83k2bmxju3.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 29 Nov 2016 19:43:48 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 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:209740 Archived-At: On Tue, Nov 29 2016, Eli Zaretskii wrote: >> From: Richard Stallman >> CC: burton.samograd@autodesk.com, eliz@gnu.org, emacs-devel@gnu.org >> Date: Tue, 29 Nov 2016 11:48:40 -0500 >> >> > Frame and window objects come back dead after being restored from the dump. >> >> Can that be fixed by creating new equivalent windows and frames? > > I'm actually wondering why frames and windows (and buffers, for that > matter) need to be dumped at all. The fact we do that now is just an > artifact of how unexec works: it dumps the entire data section. We > even have special code that runs at startup to undo some of the > peculiarities this causes. > > However, a dumper that we control by manually telling it what to dum > and what not doesn't have to do that. IMO, that's just something that > doesn't need to exist in the brave new unexec-free world. (Note that > the "one huge .elc file" method has this built-in.) Frames and windows aren't dumped. That's why they come back as dead objects. Lisp objects have to point to *something*, and a dead object of the right type is a good placeholder.