]> git.eshelyaron.com Git - emacs.git/commitdiff
fix bug for not blanking func_hash after context release
authorAndrea Corallo <andrea_corallo@yahoo.it>
Sun, 11 Aug 2019 08:15:46 +0000 (10:15 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:33:58 +0000 (11:33 +0100)
src/comp.c

index 42186e7ea5d9ef7b5dbc6750cfb75ce752762c91..7f1219780cc0f1079d4b026cf883135e83f1f643 100644 (file)
@@ -2183,8 +2183,11 @@ DEFUN ("comp-init-ctxt", Fcomp_init_ctxt, Scomp_init_ctxt,
                                                    sizeof (void *),
                                                    false);
 
-  if (NILP (comp.func_hash))
-    comp.func_hash = CALLN (Fmake_hash_table, QCtest, Qequal);
+  /*
+    Always reinitialize this cause old function definitions are garbage collected
+    by libgccjit when the ctxt is released.
+  */
+  comp.func_hash = CALLN (Fmake_hash_table, QCtest, Qequal);
 
   /* Define data structures.  */