1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 12:20:39 -08:00

More GC assertions

This commit is contained in:
Daniel Colascione 2014-04-08 05:34:30 -07:00
commit a237d879b9
2 changed files with 8 additions and 0 deletions

View file

@ -6220,6 +6220,8 @@ mark_object (Lisp_Object arg)
break;
CHECK_ALLOCATED_AND_LIVE (live_symbol_p);
ptr->gcmarkbit = 1;
/* Attempt to catch bogus objects. */
eassert (valid_lisp_object_p (ptr->function) >= 1);
mark_object (ptr->function);
mark_object (ptr->plist);
switch (ptr->redirect)
@ -6640,6 +6642,8 @@ sweep_symbols (void)
{
++num_used;
sym->s.gcmarkbit = 0;
/* Attempt to catch bogus objects. */
eassert (valid_lisp_object_p (sym->s.function) >= 1);
}
}