]> git.eshelyaron.com Git - emacs.git/commit
Fix segfault in profiler after pdump load
authorDaniel Colascione <dancol@dancol.org>
Thu, 17 Jan 2019 01:26:19 +0000 (20:26 -0500)
committerDaniel Colascione <dancol@dancol.org>
Thu, 17 Jan 2019 01:26:19 +0000 (20:26 -0500)
commit191a5568db35f3a56f26431ca4722175d38c684f
tree982f88df4a7123afc6ee5502420f88ae6df1f11e
parent27f53bd6886c1a76ac7058ae7b90cacc317aadea
Fix segfault in profiler after pdump load

Move initialization of the profiler's hash test to static
initialization from the syms function so that pdumper doesn't need to
bother capturing it in any special way.

* src/profiler.c (cmpfn_profiler, hashfn_profiler):
forward declare.
(hashtest_profiler): statically initialize.
(syms_of_profiler): remove dynamic initialization of
hashtest_profiler.
src/profiler.c