Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-12-30 | libthread: drop schedlock | Russ Cox | 1 | -1/+0 | |
Having two locks in the proc was causing deadlocks. | |||||
2020-12-30 | libthread: simplify | Russ Cox | 1 | -44/+0 | |
Now that everything uses pthreads and pthreadperthread, can delete various conditionals, all the custom context code, and so on. Also update documents. Fixes #355. | |||||
2020-12-30 | libthread: fix pthreadperthread bugs | Russ Cox | 1 | -0/+1 | |
2020-06-15 | libthread: use libc functions in ucontext for macOS (#417) | Xiao-Yong | 1 | -35/+1 | |
2020-05-17 | libthread: add pthreadperthread mode and use under ASAN | Russ Cox | 1 | -11/+22 | |
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. | |||||
2020-01-19 | libthread: use consistent stack calculation code in makecontext | Russ Cox | 1 | -0/+3 | |
Also reduce duplication: makecontext is per-arch not per-os-arch. May fix #353. | |||||
2020-01-19 | libthread: rm unused sparc-ucontext.h | Russ Cox | 1 | -14/+0 | |
More dead code. | |||||
2020-01-19 | libthread: rm FreeBSD 4 code | Russ Cox | 1 | -9/+0 | |
Pretty sure FreeBSD 4 is gone now. :-) | |||||
2020-01-14 | libthread: use mmap to allocate OpenBSD stacks | Russ Cox | 1 | -0/+2 | |
Should fix faults on OpenBSD. Fixes #218. Fixes #226. | |||||
2020-01-13 | libthread: fix fault in teardown of proc | Russ Cox | 1 | -1/+1 | |
Fixes #332. | |||||
2020-01-12 | libthread: run first thread in proc on system stack | Russ Cox | 1 | -1/+0 | |
For pthread systems that are fussy about which stack is used, this makes sure that threadmain runs on a system stack. If you only use proccreate (never threadcreate), all threads run on system stacks. | |||||
2020-01-10 | Trivial changes: whitespace and modes. | Dan Cross | 1 | -1/+1 | |
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net> | |||||
2012-10-22 | libthread: add threadspawnd | Russ Cox | 1 | -2/+3 | |
R=rsc http://codereview.appspot.com/6742064 | |||||
2012-07-14 | openbsd updates (thanks Pascal Stumpf) | Russ Cox | 1 | -0/+2 | |
R=rsc http://codereview.appspot.com/6401049 | |||||
2011-10-23 | OS X PowerPC fixes (thanks Cameron Kaiser) | Russ Cox | 1 | -1/+1 | |
2011-10-13 | libthread: Lion context routines | Russ Cox | 1 | -2/+4 | |
2011-08-02 | build: OS X 64-bit build | Russ Cox | 1 | -4/+15 | |
R=rsc http://codereview.appspot.com/4838047 | |||||
2011-05-18 | arm: build fixes | Richard Miller | 1 | -4/+4 | |
Get p9p to build cleanly for ARM - based on suggestions from rsc and eekee, plus a final tweak from me. Tested (a bit) on sheevaplug (ubuntu jaunty), Nokia N800 (maemo 4) and Nokia N900 (maemo 5). R=rsc CC=plan9port.codebot http://codereview.appspot.com/4524056 | |||||
2009-11-18 | libthread: context switching for arm, still not complete | Russ Cox | 1 | -4/+4 | |
2009-09-11 | INSTALL: fix build on Snow Leopard | Russ Cox | 1 | -0/+3 | |
http://codereview.appspot.com/116073 | |||||
2007-11-05 | libthread: use our own swapcontext/makecontext even on OS X 10.5 | Russ Cox | 1 | -1/+10 | |
2007-11-03 | libthread: better OS X 10.5 test (Jeff Sickel) | Russ Cox | 1 | -1/+1 | |
2007-10-30 | libthread: Apple OS X 10.5 (Leopard) tweaks (Jeff Sickel, Bakul Shah) | Russ Cox | 1 | -1/+1 | |
2007-08-22 | libthread: simplify alt tracking, possibly fixing bug | Russ Cox | 1 | -0/+1 | |
2007-05-01 | use standard sun context routines | rsc | 1 | -0/+6 | |
2006-06-26 | pin | rsc | 1 | -0/+1 | |
2006-06-04 | set RFNOTEG when we can | rsc | 1 | -0/+9 | |
2006-04-21 | darwin 386 start | rsc | 1 | -1/+5 | |
2006-02-07 | add threadidle | rsc | 1 | -0/+1 | |
2005-11-04 | const | rsc | 1 | -1/+1 | |
2005-11-04 | try again | rsc | 1 | -2/+4 | |
2005-11-04 | try arm again | rsc | 1 | -0/+5 | |
2005-11-04 | use macro for getcontext (setjmp) | rsc | 1 | -2/+4 | |
2005-11-01 | FreeBSD changed! | rsc | 1 | -1/+1 | |
2005-07-20 | openbsd | rsc | 1 | -0/+4 | |
2005-07-19 | openbsd | rsc | 1 | -2/+6 | |
2005-05-01 | OpenBSD/power support. | rsc | 1 | -2/+9 | |
2005-03-18 | add threaddata | rsc | 1 | -0/+1 | |
2005-02-14 | different fix for main proc bug | rsc | 1 | -0/+1 | |
2005-01-30 | osprocid can be -1 | rsc | 1 | -1/+1 | |
2005-01-17 | allow config to override kernel version | rsc | 1 | -0/+1 | |
2005-01-11 | os x changes | rsc | 1 | -0/+4 | |
2005-01-07 | initial darwin | rsc | 1 | -0/+4 | |
2005-01-06 | add _procwakeupandunlock | rsc | 1 | -0/+1 | |
to help ease locking contention on Linux 2.4. | |||||
2005-01-04 | add _threaddaemonize | rsc | 1 | -0/+1 | |
2004-12-29 | Use FreeBSD-approved method for determining FreeBSD version. | wkj | 1 | -1/+1 | |
2004-12-28 | restore old plan 9 property that when the | rsc | 1 | -0/+1 | |
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 | -0/+16 | |
2004-12-28 | add threaddaemonize(), more bug fixes | rsc | 1 | -2/+2 | |
2004-12-27 | better exec handling | rsc | 1 | -0/+1 | |