aboutsummaryrefslogtreecommitdiffstats
path: root/src/comp.c
diff options
context:
space:
mode:
authorAndrea Corallo2019-08-11 10:15:46 +0200
committerAndrea Corallo2020-01-01 11:33:58 +0100
commitf63e1740edac418c2ab88d72e1ee56cecfec038a (patch)
treec2b4e6eef920e0cc9a5bd9b6fb273fa3fc3705fb /src/comp.c
parent5dda07d22c8d974b31e196a802414c267fac5cc9 (diff)
downloademacs-f63e1740edac418c2ab88d72e1ee56cecfec038a.tar.gz
emacs-f63e1740edac418c2ab88d72e1ee56cecfec038a.zip
fix bug for not blanking func_hash after context release
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/comp.c b/src/comp.c
index 42186e7ea5d..7f1219780cc 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -2183,8 +2183,11 @@ DEFUN ("comp-init-ctxt", Fcomp_init_ctxt, Scomp_init_ctxt,
2183 sizeof (void *), 2183 sizeof (void *),
2184 false); 2184 false);
2185 2185
2186 if (NILP (comp.func_hash)) 2186 /*
2187 comp.func_hash = CALLN (Fmake_hash_table, QCtest, Qequal); 2187 Always reinitialize this cause old function definitions are garbage collected
2188 by libgccjit when the ctxt is released.
2189 */
2190 comp.func_hash = CALLN (Fmake_hash_table, QCtest, Qequal);
2188 2191
2189 /* Define data structures. */ 2192 /* Define data structures. */
2190 2193