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:
46cfcf550f190fdef3496ae81d52c621862d01b1
- From:
- rsc <devnull@localhost>
- Date:
stupid gcc
- Commit:
3d867865ef5663f640f7c607fadfd3fb0c0ac625
- From:
- rsc <devnull@localhost>
- Date:
better exit handling
- Commit:
7a2c88509bea849196ed4b77cf10512c4ff40cce
- From:
- rsc <devnull@localhost>
- Date:
allow config to override kernel version
- Commit:
c345061e8d81a737b2926da7ecad4b4389677fe8
- From:
- rsc <devnull@localhost>
- Date:
sunos fixes
- Commit:
a0a331aad99bbca5a13fa4b69593061f29dc3a29
- From:
- rsc <devnull@localhost>
- Date:
add _procwakeupandunlock
to help ease locking contention
on Linux 2.4.
- Commit:
1d2533d0101fd1721ab26837485c0b094205c3bd
- From:
- rsc <devnull@localhost>
- Date:
restore old plan 9 property that when the
last thread exits the main proc, the remaining
program ends up in the background and the
program appears to have exited.
- Commit:
d54ead7fb922cfa661c7b7f0d0b2ba1251cdea7f
- From:
- rsc <devnull@localhost>
- Date:
more freebsd work
- Commit:
93eb807ac2b7c23cae2b0999957532b5b666f437
- From:
- rsc <devnull@localhost>
- Date:
remove debugging
- Commit:
8cbd854a8ab2c4f8c738c5bea5263217cb892a77
- From:
- rsc <devnull@localhost>
- Date:
better exec handling
- Commit:
e127e40bb1327662a05f5b70dd1bbca5c69b042c
- From:
- rsc <devnull@localhost>
- Date:
shuffle to allow use of execchan in non-pthreads impls
- Commit:
4dbefdd41ca866a10cee633a3ee9a67d9204b052
- From:
- rsc <devnull@localhost>
- Date:
start linux pre-2.6 port
- Commit:
73722a8bbf80f47ea2df2a212516d1b857ffe29a
- From:
- rsc <devnull@localhost>
- Date:
confine pthreads to pthread.c
- Commit:
e1dc7e4511d4644060d4904dcae50808d966fff7
- From:
- rsc <devnull@localhost>
- Date:
signal handling, add prototype for pthreadinit