unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* BLOCK_INPUT in compile_pattern_1
@ 2006-09-10 18:53 Stefan Monnier
  2006-09-11 14:11 ` Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2006-09-10 18:53 UTC (permalink / raw)
  Cc: emacs-devel


Richard, concerning your question:

  /* Doing BLOCK_INPUT here has the effect that
     the debugger won't run if an error occurs.
     Why is BLOCK_INPUT needed here?  */

I don't have a firm answer, but I suspect that it may have been due to the
fact that re_compile_pattern may call `malloc'.  And since our
signal-handling routines can also call `malloc' (unless we use SYNC_INPUT),
we have to be careful to BLOCK_INPUT around any direct or indirect call
to malloc.


        Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-11 14:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-10 18:53 BLOCK_INPUT in compile_pattern_1 Stefan Monnier
2006-09-11 14:11 ` Richard Stallman
2006-09-11 14:28   ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).