]> git.eshelyaron.com Git - emacs.git/commit
Do not call `gensym' too early when loading a dump file.
authorNicolás Bértolo <nicolasbertolo@gmail.com>
Sat, 30 May 2020 00:03:00 +0000 (21:03 -0300)
committerAndrea Corallo <akrl@sdf.org>
Sun, 31 May 2020 08:47:11 +0000 (09:47 +0100)
commitbb9c0188ea3881a555415de7e6fe7973911719e9
tree8829dee58bca8e53000181cf7b2fd43419f6c8ba
parenteeebbd5fcbdf2827689311b3751437670bfc2e22
Do not call `gensym' too early when loading a dump file.

This happened when subr.eln was not the first native compilation unit
to be loaded. register_native_comp_unit() is called when loading a
native compilation unit and that in turn used to call `gensym', which
was not loaded yet. This led to a SIGSEGV.

* src/comp.c (register_native_comp_unit): Replace the call to `gensym'
with an ad-hoc counter.
src/comp.c