[LLVMdev] Proposal: stack/context switching within a thread

Kenneth Uildriks kennethuil at gmail.com
Sat Apr 10 11:40:45 PDT 2010


>  In fact, one could segment an inactive context
> stack at any time rather than copying the whole thing, as long as you
> can assume that there aren't any pointers into the context's stack
> living outside the context.
>

Never mind that... stacks by default don't have back pointers to
previous stack frames.  We'd still need runtime support apart from the
context switching bit, and without such support we'd have to copy the
whole stack.




More information about the llvm-dev mailing list