]> git.eshelyaron.com Git - emacs.git/commit
Do not redundantly dump constant forwarding objects
authorPo Lu <luangruo@yahoo.com>
Sat, 29 Mar 2025 06:45:38 +0000 (14:45 +0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 31 Mar 2025 08:31:54 +0000 (10:31 +0200)
commit6dd4d002c84142c143f2f3e5475f75fe26f3367a
tree2dd5c6d3f688f162c2a43403002e44073c1e7595
parent5bcf70f792e23ab1828161172ab710dfc6bc11ab
Do not redundantly dump constant forwarding objects

* src/pdumper.c (dump_fwd_int, dump_fwd_bool, dump_fwd_obj): Do
not redundantly dump constant forwarding descriptors; restrict
to dumping the objects being forwarded to.
(dump_fwd_buffer_obj): Copy from the dump file into bss rather
than load buffer forwarding descriptors from the dump file
itself.
(dump_fwd_kboard_obj): Delete function.
(dump_fwd): Don't return offset of dumped objects.
(dump_blv): Adjust correspondingly.
(dump_pre_dump_symbol): Improve documentation.  Record offset of
forwarding objects in relation to `emacs_basis' rather than the
dump file.
(dump_symbol): Restore forwarding descriptors to their original
values as static variables in Emacs.  This reduces the size of
dump files by an insignificant 2kb but facilitates certain kinds
of watchpoints on platforms where ASLR cannot be disabled, e.g.,
Android.

(cherry picked from commit 2b7a72b1177a057813f40aacc24fd0cd71f5903a)
src/pdumper.c