Commits
- Commit:
53bf1f1ccf9a6fee9437649216ac047f80590fae
- From:
- Ben Huntsman <BHuntsman@mail2.cu-portland.edu>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
9l: xlc_r automatically adds -lpthread.
- Commit:
7a371bf93652573b3d57d50466d3ea22a6eebff2
- From:
- Ben Huntsman <BHuntsman@mail2.cu-portland.edu>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: use __builtin_return_address on IBM XL/C
- Commit:
20c841bac102e777a3a1723724fa5d31018fefcc
- From:
- Russ Cox <rsc@swtch.com>
- Date:
rc: avoid problematic internal names "var", "thread"
For AIX.
- Commit:
dea4dbdba6e8a4652e682627dce50503bca5c4b4
- From:
- Russ Cox <rsc@swtch.com>
- Date:
acme: avoid global named "class"
For AIX.
- Commit:
079f5e94459fe5afccf749764d81ab88c59f055a
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libdiskfs: avoid problematic internal constant names
AIX defines some of these constants in its C header files.
- Commit:
d4a4b66a401d8988441dd663bf1664e11c045797
- From:
- Russ Cox <rsc@swtch.com>
- Date:
diff: rename class to fix AIX
math.h defines a function named class on AIX.
- Commit:
84167be4ad170c879db48493438f507c2d40d28d
- From:
- Gabriel Diaz <gdiaz@qswarm.com>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
devdraw: use indirect impl interface in x11
- Commit:
c53ad837a734f7570badcb3666ccb3604e7e6467
- From:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: avoid unportable use of d_namlen in dirread
Fixes #395.
- Commit:
587933c16132d880a06ff99bd087e64a3a04975e
- From:
- Russ Cox <rsc@swtch.com>
- Date:
devdraw: use global drawlk instead of per-client
Setting up for a real window system.
- Commit:
94d381ec9d579e5336f3817b68cf4d1a8a7333db
- From:
- Russ Cox <rsc@swtch.com>
- Date:
devdraw: use indirect impl interface
Setting up for a real window system.
- 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:
06687f70ba7a5836c2e872648a85a724a5a1d486
- From:
- Russ Cox <rsc@swtch.com>
- Date:
INSTALL: build mk all the time
If mk gets into a bad state, it's not obvious that you can
remove the binary to force the rebuild. Also, not rebuilding
means that bugs in mkmk.sh are not noticed.
Just rebuild from scratch every time. It doesn't take too long
compared to the rest of INSTALL.
- Commit:
9444b8e4bc847f8fd9d02466976b962288cedf31
- From:
- Russ Cox <rsc@swtch.com>
- Date:
9c, 9l: accept CC9FLAGS from config
Also, if CC9FLAGS includes -fsanitize=address (ASAN),
predefine PLAN9PORT_ASAN for use by programs that need
to know (mainly libthread).
The 9c script used to have a variable called ngflags, which
was ccflags except -g (ng stood for "no g"), but nothing needs
it split out anymore, so simplify to just ccflags.
- Commit:
154140a22b1c697f6a3edb3e5913efded1be082a
- From:
- Russ Cox <rsc@swtch.com>
- Date:
mk: replace overlapping strcpy with memmove
Found by ASAN.