Commits
- 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:
369923f6fca5a713698dbac76c486ddb28f43721
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: fix nbrecvul, recvul to match man page, Plan 9
They return 0 on failure, not -1.
Bug introduced in my original libthread-for-Unix code.
Fixes #230.
- 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:
0215811dc2517e7213a3cd7423f94710b20b57d1
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: fix no-receive nbrecv etc. bug (David Jeannot)
- Commit:
80f2165d274da5185a09ebda340505b067b08eb4
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: input sanity checks
- Commit:
47ede89e4a832de2dada80599c1260f456275f19
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: simplify alt tracking, possibly fixing bug
- Commit:
c8b6342d3c2a167dec16931815926e9e4387e7ef
- From:
- rsc <devnull@localhost>
- Date:
Many small edits.
- Commit:
d54ead7fb922cfa661c7b7f0d0b2ba1251cdea7f
- From:
- rsc <devnull@localhost>
- Date:
more freebsd work
- Commit:
73722a8bbf80f47ea2df2a212516d1b857ffe29a
- From:
- rsc <devnull@localhost>
- Date:
confine pthreads to pthread.c
- Commit:
619085f0b4a85104ef6c7496f9ce1f46e9b17c82
- From:
- rsc <devnull@localhost>
- Date:
more new libthread