Re: Patch RFA: Add context switching splitstack routines

2011-11-09 Thread Ian Lance Taylor
Ian Lance Taylor writes: > libgcc/ChangeLog: > > 2011-11-07 Ian Lance Taylor > > * generic-morestack.c: Include . > (uintptr_type): Define. > (struct initial_sp): Add dont_block_signals field. Reduce size of > extra array by 1. > (allocate_segment): Set prev fiel

Patch RFA: Add context switching splitstack routines

2011-11-07 Thread Ian Lance Taylor
This patch adds some support for context switching to the -fsplit-stack support routines in libgcc. I intend to use this in the Go library to support multiplexing multiple goroutines onto a single pthread. They work similarly to getcontext/setcontext/makecontext. This patch also adds control ove