Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Re: Allowing traps



On Nov 23,  9:42pm, Peter Stephenson wrote:
}
} Bart wrote:
} > We could start by wrapping every function in mem.c with queue_signals()/
} > unqueue_signals().
} 
} We did something pretty similar some time ago (1992?) --- the performance
} hit was ghastly, so we removed it.

You'll note that the ZSH_MEM malloc() and zhalloc() both already have some
sections in queue_signals().  What I'm suggesting is that other operations
that manipulate the heap pointers should be similarly protected.


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author