From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Preview: portable dumper Date: Tue, 29 Nov 2016 20:17:47 +0200 Message-ID: <838ts2rvzo.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1480443525 25306 195.159.176.226 (29 Nov 2016 18:18:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2016 18:18:45 +0000 (UTC) Cc: burton.samograd@autodesk.com, rms@gnu.org, emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 29 19:18:41 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 1cBmzI-00061H-R9 for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2016 19:18:40 +0100 Original-Received: from localhost ([::1]:38663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBmzM-00074d-Mn for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2016 13:18:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBmyf-00073x-0o for emacs-devel@gnu.org; Tue, 29 Nov 2016 13:18:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBmye-0000QA-51 for emacs-devel@gnu.org; Tue, 29 Nov 2016 13:18:01 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBmya-0000OG-Mj; Tue, 29 Nov 2016 13:17:56 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1119 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cBmyT-0000Lb-3H; Tue, 29 Nov 2016 13:17:49 -0500 In-reply-to: (message from Daniel Colascione on Tue, 29 Nov 2016 09:49:59 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:209744 Archived-At: > From: Daniel Colascione > Cc: rms@gnu.org, emacs-devel@gnu.org, burton.samograd@autodesk.com > Date: Tue, 29 Nov 2016 09:49:59 -0800 > > > 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. Which Lisp objects need to point to frames and windows?