Commits
- Commit:
162d0d5cd94fabab822ac66655be8957151cef99
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: handle spurious _procsleep wakeups, fix $LIBTHREAD handling
- 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:
4197af4122bc06cf4062ca2d1d5bc8f973e37cf1
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: comment stack border a bit more
- 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:
04e0a9bb81356b6713e634b4d950c524f0abf15c
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: Lion context routines
- Commit:
fc567f476a9cb381a50a94a355c4e0dd990b2539
- From:
- Russ Cox <rsc@swtch.com>
- Date:
build: OS X 64-bit build
R=rsc
http://codereview.appspot.com/4838047
- Commit:
0829f75bba8a5eb60a7f46e21aa266736b4c4bab
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: make page work on OS X
- Commit:
0ac670585c5eac5a6348aeb0e7b018659b2dbc09
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: work around gcc warning on FreeBSD
- Commit:
d19769ae98bce9c5893960e92c481a78d62d6be8
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: correct sysfatal handler prototype
- Commit:
69d1259cf9af6d288b34c4452db4c418e739f750
- From:
- Tim Wiess <devnull@localhost>
- Date:
libthread: add proper sysfatal
- Commit:
faf1fb6c7e14e95e54865b660db7501ed390ea9e
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: abort on single-threaded lock contention
- Commit:
df1ee4e1af9340a8207535c5009ec289bf1ecda1
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: fix 64-bit bug in threadstart (Nathaniel Filardo)