diff options
| author | Paul Eggert | 2019-07-12 22:29:02 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-07-12 22:29:57 -0700 |
| commit | 04cbdde94d256d9b3fbfcc67981374a55d339fcd (patch) | |
| tree | f7489fb823bf1301a9cb13d247fc521b197bf572 /src/pdumper.c | |
| parent | 13eaf8621390687b32d964e4821584c1bb629c2c (diff) | |
| download | emacs-04cbdde94d256d9b3fbfcc67981374a55d339fcd.tar.gz emacs-04cbdde94d256d9b3fbfcc67981374a55d339fcd.zip | |
Replace Vdead with tagged pointer
This speeds up ‘make compile-always’ by 0.1% on my platform.
Suggested by Pip Cet in:
https://lists.gnu.org/r/emacs-devel/2019-07/msg00257.html
* src/.gdbinit (pwinx, pgx, xbuffer, xprintstr):
Output dead_object () as "DEAD".
* src/alloc.c (Vdead, DEADP): Remove.
All uses replaced by dead_object () / deadp.
(deadp): New function.
(init_alloc_once_for_pdumper): Remove no-longer-needed
initialization.
* src/lisp.h (dead_object): New function.
Diffstat (limited to 'src/pdumper.c')
| -rw-r--r-- | src/pdumper.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pdumper.c b/src/pdumper.c index 3d8531c6a43..b80757c2071 100644 --- a/src/pdumper.c +++ b/src/pdumper.c | |||
| @@ -3061,10 +3061,7 @@ dump_object (struct dump_context *ctx, Lisp_Object object) | |||
| 3061 | #if CHECK_STRUCTS && !defined (HASH_Lisp_Type_E2AD97D3F7) | 3061 | #if CHECK_STRUCTS && !defined (HASH_Lisp_Type_E2AD97D3F7) |
| 3062 | # error "Lisp_Type changed. See CHECK_STRUCTS comment in config.h." | 3062 | # error "Lisp_Type changed. See CHECK_STRUCTS comment in config.h." |
| 3063 | #endif | 3063 | #endif |
| 3064 | #ifdef ENABLE_CHECKING | 3064 | eassert (!EQ (object, dead_object ())); |
| 3065 | /* Vdead is extern only when ENABLE_CHECKING. */ | ||
| 3066 | eassert (!EQ (object, Vdead)); | ||
| 3067 | #endif | ||
| 3068 | 3065 | ||
| 3069 | dump_off offset = dump_recall_object (ctx, object); | 3066 | dump_off offset = dump_recall_object (ctx, object); |
| 3070 | if (offset > 0) | 3067 | if (offset > 0) |