GNU bug report logs - #36649
27.0.50; pure space and pdumper

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> gmail.com>

Date: Sun, 14 Jul 2019 14:27:01 UTC

Severity: wishlist

Tags: patch

Found in version 27.0.50

Done: Pip Cet <pipcet <at> protonmail.com>

Bug is archived. No further changes may be made.

Full log


Message #127 received at 36649 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Robert Pluim <rpluim <at> gmail.com>, Pip Cet <pipcet <at> gmail.com>
Cc: 36649 <at> debbugs.gnu.org, larsi <at> gnus.org,
 Andreas Schwab <schwab <at> linux-m68k.org>, Stefan Kangas <stefankangas <at> gmail.com>,
 Andrea Corallo <akrl <at> sdf.org>
Subject: Re: bug#36649: 27.0.50; pure space and pdumper
Date: Thu, 4 Mar 2021 13:52:29 -0800
On 3/4/21 6:56 AM, Robert Pluim wrote:
>      Pip> - zero vector handling depends on Qnil being all zero in memory
> 
> I think Emacs already assumes Qnil == 0, since there are places that
> use ! to check for Qnil rather than using NILP.

The convention is to put a "verify (NIL_IS_ZERO);" near the rare bits of 
code that assume Qnil is all-bits-zero. This is to help out any 
hypothetical future developer who wants to change Qnil to be some other 
value. Currently there are only two such locations. (There is one other 
location that uses NIL_IS_ZERO for an optimization.)




This bug report was last modified 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.