]> git.eshelyaron.com Git - emacs.git/commit
Fix crashes when unbind_for_thread_switch signals an error.
authorEli Zaretskii <eliz@gnu.org>
Sun, 1 Sep 2013 15:43:43 +0000 (18:43 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 1 Sep 2013 15:43:43 +0000 (18:43 +0300)
commitbed10876dba330b24419a6144dc62db52bb273ab
treea5480db866493e1fa7db43bdc2c8b4bbde0ac4a6
parente57df8f77901a3964d21c3d57fb6769cf4511dc2
Fix crashes when unbind_for_thread_switch signals an error.

 src/eval.c (unbind_for_thread_switch): Accept a 'struct
 thread_state *' argument and use specpdl_ptr and specpdl of that
 thread.  Fixes crashes if find_symbol_value signals an error.
 src/thread.c (post_acquire_global_lock): Update current_thread
 before calling unbind_for_thread_switch.  Pass the previous thread
 to unbind_for_thread_switch.
src/ChangeLog
src/eval.c
src/lisp.h
src/thread.c