summaryrefslogtreecommitdiffstats
path: root/src/libthread/pthread.c
Commit message (Collapse)AuthorAgeFilesLines
* libthread: handle spurious _procsleep wakeups, fix $LIBTHREAD handlingRuss Cox2020-05-171-1/+3
|
* libthread: add pthreadperthread mode and use under ASANRuss Cox2020-05-171-0/+33
| | | | | | | | | | | | | | | | | | ASAN can't deal with the coroutine stacks. In theory we can call into ASAN runtime to let it know about them, but ASAN still has problems with fork or exit happening from a non-system stack. Bypass all possible problems by just having a full OS thread for each libthread thread. The threads are still cooperatively scheduled within a proc (in thos mode, a group of OS threads). Setting the environment variable LIBTHREAD=pthreadperthread will enable the pthreadperthread mode, as will building with CC9FLAGS='-fsanitize=address' in $PLAN9/config. This solution is much more general than ASAN - for example if you are trying to find all the thread stacks in a reproducible crash you can use pthreadperthread mode with any debugger that knows only about OS threads.
* stupid gccrsc2005-02-031-1/+1
|
* better exit handlingrsc2005-01-181-3/+4
|
* allow config to override kernel versionrsc2005-01-171-0/+17
|
* sunos fixesrsc2005-01-071-3/+3
|
* add _procwakeupandunlockrsc2005-01-061-0/+10
| | | | | to help ease locking contention on Linux 2.4.
* restore old plan 9 property that when thersc2004-12-281-0/+5
| | | | | | last thread exits the main proc, the remaining program ends up in the background and the program appears to have exited.
* more freebsd workrsc2004-12-281-4/+0
|
* remove debuggingrsc2004-12-281-0/+6
|
* better exec handlingrsc2004-12-271-6/+0
|
* shuffle to allow use of execchan in non-pthreads implsrsc2004-12-271-0/+6
|
* start linux pre-2.6 portrsc2004-12-271-3/+3
|
* confine pthreads to pthread.crsc2004-12-271-5/+29
|
* signal handling, add prototype for pthreadinitrsc2004-12-271-1/+1
|
* more new libthreadrsc2004-12-251-0/+108
|
* New thread libraryrsc2004-12-251-271/+0
|
* more thread workrsc2004-11-081-86/+182
|
* try to implement the daemonize hack.rsc2004-10-221-20/+28
|
* debugging, more pthreads craprsc2004-10-221-1/+4
|
* add pthreadrsc2004-09-231-0/+164