Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-05-17 | libthread: handle spurious _procsleep wakeups, fix $LIBTHREAD handling | Russ Cox | 1 | -1/+3 | |
2020-05-17 | libthread: add pthreadperthread mode and use under ASAN | Russ Cox | 1 | -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. | |||||
2005-02-03 | stupid gcc | rsc | 1 | -1/+1 | |
2005-01-18 | better exit handling | rsc | 1 | -3/+4 | |
2005-01-17 | allow config to override kernel version | rsc | 1 | -0/+17 | |
2005-01-07 | sunos fixes | rsc | 1 | -3/+3 | |
2005-01-06 | add _procwakeupandunlock | rsc | 1 | -0/+10 | |
to help ease locking contention on Linux 2.4. | |||||
2004-12-28 | restore old plan 9 property that when the | rsc | 1 | -0/+5 | |
last thread exits the main proc, the remaining program ends up in the background and the program appears to have exited. | |||||
2004-12-28 | more freebsd work | rsc | 1 | -4/+0 | |
2004-12-28 | remove debugging | rsc | 1 | -0/+6 | |
2004-12-27 | better exec handling | rsc | 1 | -6/+0 | |
2004-12-27 | shuffle to allow use of execchan in non-pthreads impls | rsc | 1 | -0/+6 | |
2004-12-27 | start linux pre-2.6 port | rsc | 1 | -3/+3 | |
2004-12-27 | confine pthreads to pthread.c | rsc | 1 | -5/+29 | |
2004-12-27 | signal handling, add prototype for pthreadinit | rsc | 1 | -1/+1 | |
2004-12-25 | more new libthread | rsc | 1 | -0/+108 | |
2004-12-25 | New thread library | rsc | 1 | -271/+0 | |
2004-11-08 | more thread work | rsc | 1 | -86/+182 | |
2004-10-22 | try to implement the daemonize hack. | rsc | 1 | -20/+28 | |
2004-10-22 | debugging, more pthreads crap | rsc | 1 | -1/+4 | |
2004-09-23 | add pthread | rsc | 1 | -0/+164 | |