Fix bug in GC_CHECK_MARKED_OBJECTS check
commit3b4d119c40817a528be5ad2bb994521a947dc443
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 6 Oct 2015 20:33:50 +0000 (6 13:33 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 6 Oct 2015 20:34:18 +0000 (6 13:34 -0700)
tree083ec896b041d3fc772a3614d4bb33f8c9ae53b0
parenta4a98a1b2568793ead43e824ecf227768759df12
Fix bug in GC_CHECK_MARKED_OBJECTS check

* src/alloc.c (mark_object): Fix bug in checking code.
When GC_CHECK_MARKED_OBJECTS is defined, the bug caused
CHECK_ALLOCATED_AND_LIVE_SYMBOL to repeatedly do the
CHECK_ALLOCATED and CHECK_LIVE tests for the first symbol in each
bucket.  The bug did not affect behavior either in the normal case
where GC_CHECK_MARKED_OBJECTS is not defined, or where Emacs does
not have an internal error that a properly-written
CHECK_ALLOCATED_AND_LIVE_SYMBOL would detect.
src/alloc.c