alloca... (and setjmp/longjmp coroutines)

Chris Torek chris at mimsy.UUCP
Sat Jun 11 02:57:41 AEST 1988


In article <16126 at brl-adm.ARPA> ted%nmsu.csnet at relay.cs.net writes:
[alloca + setjmp/longjmp for coroutines]

longjmp is not suitable for coroutines because it is valid for longjmp
to attempt to unwind the stack in order to find the corresponding
setjmp, and it is therefore legal for longjmp to abort if it is
attempting to jump the `wrong way' on the stack.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.wizards mailing list