Commits
- Commit:
91ececc99741b3111c69d455bc928e871b15d766
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: drop schedlock
Having two locks in the proc was causing deadlocks.
- Commit:
18571208068d5fe2f0bf7b4e980525a7f577c503
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: simplify
Now that everything uses pthreads and pthreadperthread,
can delete various conditionals, all the custom context code,
and so on. Also update documents.
Fixes #355.
- Commit:
b73633b1b4e9d3dbd680edf900b2b53befbf5a9a
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: fix pthreadperthread bugs
- Commit:
329831171dd6ef81c113f101093c7b4947381003
- From:
- Xiao-Yong <xjin@anl.gov>
- Via:
- GitHub <noreply@github.com>
- Date:
libthread: use libc functions in ucontext for macOS (#417)
- Commit:
baef953da253314657be9adea8f371bfbf4ba09e
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: add pthreadperthread mode and use under ASAN
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.
- Commit:
41b3e8b9893a8561af7e85ca98444bc284b4013d
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: use consistent stack calculation code in makecontext
Also reduce duplication: makecontext is per-arch not per-os-arch.
May fix #353.
- Commit:
c181e39eeab0eb8cad274b7b22ce5343bd55630d
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: rm unused sparc-ucontext.h
More dead code.
- Commit:
8dcb18f71b1917713d4743ab10968c527acdc62e
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: rm FreeBSD 4 code
Pretty sure FreeBSD 4 is gone now. :-)
- Commit:
8c573cab6819c69142389d36b978b3c683771afe
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: use mmap to allocate OpenBSD stacks
Should fix faults on OpenBSD.
Fixes #218.
Fixes #226.
- Commit:
481b596d9389076d686832e0a3c26fc7b550c532
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: fix fault in teardown of proc
Fixes #332.
- Commit:
0158bceec78c7891a7ef672770bf42e65fd064dd
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: run first thread in proc on system stack
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.
- Commit:
fa325e9b42b0bdfb48857d1958d9fb7ceac55151
- From:
- Dan Cross <cross@gajendra.net>
- Date:
Trivial changes: whitespace and modes.
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>
- Commit:
9e4b56e7645e08311590355824863ecf9f334f0c
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: add threadspawnd
R=rsc
http://codereview.appspot.com/6742064
- Commit:
20f5692b7fe1190e6c518ed82764ded41dd92986
- From:
- Russ Cox <rsc@swtch.com>
- Date:
openbsd updates (thanks Pascal Stumpf)
R=rsc
http://codereview.appspot.com/6401049
- Commit:
813b3eea8b469a6d603f13a51a8afb8e3dae3a32
- From:
- Russ Cox <rsc@swtch.com>
- Date:
OS X PowerPC fixes (thanks Cameron Kaiser)