Generalize fix for crash due to non-contiguous EMACS_INT (Bug#10780).
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Feb 2012 19:39:42 +0000 (11:39 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Feb 2012 19:39:42 +0000 (11:39 -0800)
commit27f3c6378b0e09d6e3c1b4b55b7e2fc5c22c8e65
tree2e47f4531248214cbb4bd6ceb3bb152741e96aff
parent23453255524411eaae5c79d7e4ae6c22f6f05f3f
Generalize fix for crash due to non-contiguous EMACS_INT (Bug#10780).

Suggested by Stefan Monnier in
<http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00692.html>.
* alloc.c (widen_to_Lisp_Object): New static function.
(mark_memory): Also mark Lisp_Objects by fetching pointer words
and widening them to Lisp_Objects.  This would work even if
USE_LSB_TAG is defined and wide integers are used, which might
happen in a future version of Emacs.
src/ChangeLog
src/alloc.c
src/lisp.h