]> git.eshelyaron.com Git - emacs.git/commitdiff
* Fix GC mark for native compiled functions
authorAndrea Corallo <akrl@sdf.org>
Mon, 9 Mar 2020 10:45:51 +0000 (10:45 +0000)
committerAndrea Corallo <akrl@sdf.org>
Tue, 10 Mar 2020 10:42:56 +0000 (10:42 +0000)
native_intspec and native_doc fields has to be reached by the subr
cause are not anymore in the CU.

src/alloc.c

index 9a01edca3f8ee4b4b13f3c9111ff46af2a47aac5..ac1730771328bbe6ed89b6c743775582c5d2b075 100644 (file)
@@ -6683,9 +6683,9 @@ mark_object (Lisp_Object arg)
              {
                set_vector_marked (ptr);
                struct Lisp_Subr *subr = XSUBR (obj);
-               obj = subr->native_comp_u[0];
-               eassert (obj);
-               goto loop;
+               mark_object (subr->native_intspec);
+               mark_object (subr->native_doc);
+               mark_object (subr->native_comp_u[0]);
              }
            break;