aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorEli Zaretskii2016-10-11 14:38:48 +0300
committerEli Zaretskii2016-10-11 14:38:48 +0300
commitdac64e35ddd203be2b841e65cf16e11ce9b1be6a (patch)
tree0de1d099db1ff5af33505055344f74c0b1c625b4 /src/alloc.c
parent4f406e9813e073b675bb45613bf1dd111eec2368 (diff)
downloademacs-dac64e35ddd203be2b841e65cf16e11ce9b1be6a.tar.gz
emacs-dac64e35ddd203be2b841e65cf16e11ce9b1be6a.zip
Avoid optimizing out the last_marked[] array
* src/alloc.c <last_marked>: No longer 'static', to avoid having it optimized out in optimized builds, which then makes debugging GC problems harder.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index c7f58a8adc4..c5ae8b53ddc 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6014,7 +6014,9 @@ mark_glyph_matrix (struct glyph_matrix *matrix)
6014 all the references contained in it. */ 6014 all the references contained in it. */
6015 6015
6016#define LAST_MARKED_SIZE 500 6016#define LAST_MARKED_SIZE 500
6017static Lisp_Object last_marked[LAST_MARKED_SIZE]; 6017/* This is not static to prevent it from being optimized away in an
6018 optimized build, which then makes debugging GC problems harder. */
6019Lisp_Object last_marked[LAST_MARKED_SIZE];
6018static int last_marked_index; 6020static int last_marked_index;
6019 6021
6020/* For debugging--call abort when we cdr down this many 6022/* For debugging--call abort when we cdr down this many