]> git.eshelyaron.com Git - emacs.git/commitdiff
Port last_marked change to full-program optimizers
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 12 Oct 2016 16:00:27 +0000 (09:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 12 Oct 2016 16:19:44 +0000 (09:19 -0700)
* src/alloc.c (last_marked): Now EXTERNALLY_VISIBLE.

src/alloc.c

index c5ae8b53ddc151874d23f5c7c447b323cbcda3c5..d58532b97ff40361ad0c766096a00000e137e3ae 100644 (file)
@@ -6014,9 +6014,7 @@ mark_glyph_matrix (struct glyph_matrix *matrix)
    all the references contained in it.  */
 
 #define LAST_MARKED_SIZE 500
-/* This is not static to prevent it from being optimized away in an
-   optimized build, which then makes debugging GC problems harder.  */
-Lisp_Object last_marked[LAST_MARKED_SIZE];
+Lisp_Object last_marked[LAST_MARKED_SIZE] EXTERNALLY_VISIBLE;
 static int last_marked_index;
 
 /* For debugging--call abort when we cdr down this many