From: Daniel Colascione Date: Thu, 18 Oct 2012 17:00:08 +0000 (-0800) Subject: Increase NSTATICS; tell the user when we run out of static slots. X-Git-Url: https://git.hcoop.net/bpt/emacs.git/commitdiff_plain/14145a1e84e9c84af22d66ed272bf1b28f597e24 Increase NSTATICS; tell the user when we run out of static slots. --- diff --git a/src/ChangeLog b/src/ChangeLog index 817274b569..6fece1e72c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-10-18 Daniel Colascione + + * alloc.c (NSTATICS): Increase from 0x650 to 0x1000 + (staticpro): If we run out of staticpro slots, die with an + informative error instead of just calling emacs_abort. + 2012-10-18 Martin Rudalics Fix two flaws reported by Dmitry Antipov. diff --git a/src/alloc.c b/src/alloc.c index 0afe446d26..08dc26784c 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -376,7 +376,7 @@ struct gcpro *gcprolist; /* Addresses of staticpro'd variables. Initialize it to a nonzero value; otherwise some compilers put it into BSS. */ -#define NSTATICS 0x650 +#define NSTATICS 0x1000 static Lisp_Object *staticvec[NSTATICS] = {&Vpurify_flag}; /* Index of next unused slot in staticvec. */ @@ -5030,7 +5030,7 @@ staticpro (Lisp_Object *varaddress) { staticvec[staticidx++] = varaddress; if (staticidx >= NSTATICS) - emacs_abort (); + fatal ("NSTATICS too small. Try increasing and recompiling Emacs."); }