[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/igc 7bd87c560d2 05/18: WIP
From: |
Gerd Moellmann |
Subject: |
scratch/igc 7bd87c560d2 05/18: WIP |
Date: |
Tue, 14 May 2024 04:02:07 -0400 (EDT) |
branch: scratch/igc
commit 7bd87c560d222b15672caa8bbb6f5b535019491e
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>
WIP
---
src/igc.c | 4 ++++
src/pdumper.c | 16 ++--------------
2 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/src/igc.c b/src/igc.c
index 7149c5a157a..8c9ed6deafa 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -3334,6 +3334,10 @@ igc_finish_obj (void *client, char *base, char *end)
return base + to_bytes (h->nwords);
}
+ /* Some object in Emacs, e.g. built-in symbol, buffer_defaults,
+ main_thread. These all will be memcpy'd to Emacs when a dump is
+ loaded, and are no longer useful. Make them padding. */
+ igc_assert (!pdumper_object_p (client));
size_t client_size = end - base - sizeof *out;
size_t nbytes = obj_size (client_size);
size_t nwords = to_words (nbytes);
diff --git a/src/pdumper.c b/src/pdumper.c
index ef38cfd20f1..38c7229c64a 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -1396,20 +1396,8 @@ dump_enqueue_object (struct dump_context *ctx,
is already on the normal queue: multiple enqueue calls
can increase the object's weight. */
if (state == DUMP_OBJECT_ON_NORMAL_QUEUE)
- {
-#if 0
- if (XTYPE (object) == Lisp_Vectorlike)
- {
- struct Lisp_Vector *v = XVECTOR (object);
- void *p = v;
- if (p == (void *) 0x000000017362d8a8)
- igc_break ();
- }
-#endif
-
- dump_queue_enqueue (&ctx->dump_queue, object, ctx->offset,
- weight);
- }
+ dump_queue_enqueue (&ctx->dump_queue, object, ctx->offset,
+ weight);
}
}
/* Always remember the path to this object. */
- scratch/igc updated (054a6da5726 -> f969b5a0827), Gerd Moellmann, 2024/05/14
- scratch/igc 81cb379acc0 04/18: WIP, Gerd Moellmann, 2024/05/14
- scratch/igc 55fbf28d2b1 01/18: igc_dump_header, Gerd Moellmann, 2024/05/14
- scratch/igc 85a3247f8c4 06/18: Add igc_obj_type for dumped non-objs, Gerd Moellmann, 2024/05/14
- scratch/igc 51f1720d970 02/18: igc--walk-dump, Gerd Moellmann, 2024/05/14
- scratch/igc 8fdb6e1f7d9 03/18: WIP, Gerd Moellmann, 2024/05/14
- scratch/igc 7bd87c560d2 05/18: WIP,
Gerd Moellmann <=
- scratch/igc 5306fb37899 07/18: Use IGC_OBJ_DUMPED_xx, Gerd Moellmann, 2024/05/14
- scratch/igc ef91137a394 09/18: Fix non-MPS build, Gerd Moellmann, 2024/05/14
- scratch/igc bcbc75748b9 10/18: Work on hash table dumping/loading, Gerd Moellmann, 2024/05/14
- scratch/igc 1cdc505ef76 11/18: Don't give charsets igc_headers, Gerd Moellmann, 2024/05/14
- scratch/igc 6455d3be170 16/18: Visit dumnped igc objects with closure, Gerd Moellmann, 2024/05/14
- scratch/igc 2cba24d3fb3 12/18: pdumper_visit_object_starts, Gerd Moellmann, 2024/05/14
- scratch/igc bef0953409b 17/18: Fix for obarray dump, Gerd Moellmann, 2024/05/14
- scratch/igc f969b5a0827 18/18: Remove IGC_OBJ_DUMPED_BLV, Gerd Moellmann, 2024/05/14
- scratch/igc 280ee228a2c 08/18: Dump with igc_headers if HAVE_MPS, Gerd Moellmann, 2024/05/14
- scratch/igc 496f647b7da 15/18: Cleanup, Gerd Moellmann, 2024/05/14