Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-12-30 | libthread: drop schedlock | Russ Cox | 1 | -1/+1 | |
Having two locks in the proc was causing deadlocks. | |||||
2020-12-30 | libthread: simplify | Russ Cox | 1 | -207/+10 | |
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: make pthreadperthread the default | Russ Cox | 1 | -1/+1 | |
2020-12-30 | libthread: fix pthreadperthread bugs | Russ Cox | 1 | -107/+186 | |
2020-12-30 | libthread: add threadmaybackground | Russ Cox | 1 | -1/+1 | |
Programs that want to background themselves now need to define threadmaybackground returning 1. This avoids a confusing (to people and debuggers) extra parent process for all the threaded programs that will never want to background themselves. | |||||
2020-12-15 | libthread: fix use after free of first thread in each proc | Russ Cox | 1 | -1/+9 | |
This was causing sporadic but frequent crashes at startup in 9pserve on the new M1 Macs, correctly diagnosing a use-after-free. | |||||
2020-05-17 | libthread: handle spurious _procsleep wakeups, fix $LIBTHREAD handling | Russ Cox | 1 | -5/+23 | |
2020-05-17 | libthread: add pthreadperthread mode and use under ASAN | Russ Cox | 1 | -6/+64 | |
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-24 | libthread: comment stack border a bit more | Russ Cox | 1 | -4/+10 | |
2020-01-14 | libthread: use mmap to allocate OpenBSD stacks | Russ Cox | 1 | -2/+7 | |
Should fix faults on OpenBSD. Fixes #218. Fixes #226. | |||||
2020-01-13 | libthread: fix fault in teardown of proc | Russ Cox | 1 | -0/+1 | |
Fixes #332. | |||||
2020-01-12 | libthread: run first thread in proc on system stack | Russ Cox | 1 | -14/+45 | |
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 | -13/+11 | |
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> | |||||
2011-10-13 | libthread: Lion context routines | Russ Cox | 1 | -1/+3 | |
2011-08-02 | build: OS X 64-bit build | Russ Cox | 1 | -1/+6 | |
R=rsc http://codereview.appspot.com/4838047 | |||||
2009-08-17 | libthread: make page work on OS X | Russ Cox | 1 | -0/+4 | |
2008-12-23 | libthread: work around gcc warning on FreeBSD | Russ Cox | 1 | -1/+1 | |
2008-10-26 | libthread: correct sysfatal handler prototype | Russ Cox | 1 | -4/+2 | |
2008-07-20 | libthread: add proper sysfatal | Tim Wiess | 1 | -0/+16 | |
2008-07-09 | libthread: abort on single-threaded lock contention | Russ Cox | 1 | -0/+24 | |
2008-06-01 | libthread: fix 64-bit bug in threadstart (Nathaniel Filardo) | Russ Cox | 1 | -1/+1 | |
2008-02-28 | libthread: remove bogus write in threadmain | Russ Cox | 1 | -1/+0 | |
2006-06-26 | pin | rsc | 1 | -0/+52 | |
2006-06-12 | fix proc leak; add p9usepwlibrary | rsc | 1 | -1/+8 | |
2006-04-21 | put threadinfo back | rsc | 1 | -1/+1 | |
2006-04-21 | darwin 386 start | rsc | 1 | -1/+2 | |
2006-04-01 | Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. | rsc | 1 | -13/+13 | |
2006-02-07 | add threadidle | rsc | 1 | -2/+29 | |
2006-02-05 | add threadid | rsc | 1 | -0/+9 | |
2005-09-26 | Print information on SIGQUIT, SIGINFO. | rsc | 1 | -0/+41 | |
2005-09-26 | Log if _threaddebuglevel is set. | rsc | 1 | -5/+2 | |
2005-07-27 | sun | rsc | 1 | -1/+1 | |
2005-05-07 | use full prototypes | rsc | 1 | -1/+1 | |
2005-03-18 | no need to setproc(0) | rsc | 1 | -1/+0 | |
2005-03-18 | add threaddata | rsc | 1 | -0/+6 | |
2005-02-16 | add check for procscheduler returning | rsc | 1 | -0/+1 | |
2005-02-15 | hard-to-find locking bug | rsc | 1 | -5/+19 | |
2005-02-14 | different fix for main proc bug | rsc | 1 | -11/+21 | |
2005-02-13 | work around stupid linux bug | rsc | 1 | -0/+8 | |
2005-01-23 | rename scheduler to have a more distinctive name, so stack traces can end there | rsc | 1 | -5/+5 | |
2005-01-23 | Apparently SuSE 9.1's X distribution uses even bigger | rsc | 1 | -1/+1 | |
buffers than the standard ones. 64kB appears to be enough for a stack in that case, but let's just go nuts and make the stacks enormous, so that it takes a few more doublings of X's stack needs before we run into this problem again. The VM system should take care of not actually using most of the memory anyway. | |||||
2005-01-18 | proccreate race | rsc | 1 | -1/+3 | |
2005-01-18 | add threadgetname | rsc | 1 | -0/+6 | |
2005-01-18 | 64-bit nonsense | rsc | 1 | -3/+19 | |
2005-01-16 | useful warning comment | rsc | 1 | -0/+9 | |
2005-01-14 | oops sunos | rsc | 1 | -3/+3 | |
2005-01-13 | Many small edits. | rsc | 1 | -5/+15 | |
2005-01-11 | paranoia | rsc | 1 | -1/+8 | |
2005-01-11 | os x changes | rsc | 1 | -2/+13 | |
2005-01-07 | allow lock passing | rsc | 1 | -1/+2 | |