Commits
- 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:
ac8042dfa9819f76ccfedd4aa36c1239322808b8
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: rm NetBSD pthread reference in sysofiles.sh
It may be that pthreads on NetBSD is now good enough,
but the build as written (introduced in 23a2368 at my suggestion)
is certainly broken, since both NetBSD.c and pthread.c define
the same functions.
If NetBSD does support pthreads now, then a few things
should happen together:
- libthread/sysofiles.sh should drop its top NetBSD case entirely
- libthread/NetBSD.c should be deleted
- libthread/NetBSD-*-asm.s should be deleted
- include/u.h's NetBSD case should define PLAN9PORT_USING_PTHREADS
and #include <pthread.h>
For now, restore to less clearly broken build.
- Commit:
cb8f7357867a2a5d0bd742ceeb77bce9ad5f435c
- From:
- Russ Cox <rsc@swtch.com>
- Date:
all: remove Linux 2.4 vs 2.6 detection
Linux 2.4 is dead.
(The libthread code hasn't worked for Linux 2.4 for a long time.)
- Commit:
8d82ccefd2b4b058e20ae0a7e3d9ef9b6b8cf8c3
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: remove Linux 2.4 code
Linux.c was for Linux 2.4 and is no longer used directly,
only indirectly because NetBSD.c was a 1-line file #including Linux.c.
So mv Linux.c NetBSD.c.
Also rm Linux-*-asm.s which was for Linux 2.4 as well.
- Commit:
c181e39eeab0eb8cad274b7b22ce5343bd55630d
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: rm unused sparc-ucontext.h
More dead code.
- Commit:
52397aaf2b240015533fa46f1767c20f45296465
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: rm Darwin pre-11.0.0 support
Darwin 11.0.0 was Mac OS X 10.7.0 aka Lion.
The previous version was Snow Leopard, which
has been unsupported by Apple since February 2014.
- Commit:
8dcb18f71b1917713d4743ab10968c527acdc62e
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: rm FreeBSD 4 code
Pretty sure FreeBSD 4 is gone now. :-)
- Commit:
d15607b9ddd9872b48fe3ac8c68f9637044be310
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: rm OpenBSD.c
This should have been deleted in 20f5692b (2012-07-14),
which removed the mkfile and sysofiles.sh references to it.
- Commit:
57157d856e4bf66326771e8036062eb6881280ca
- From:
- Neven Sajko <nsajko@gmail.com>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: rm unused ARM (get|set)mcontext (#354)
They were just a duplicate of my(get|set)mcontext from the other
assembly file, and unused from threadimpl.h.
Change-Id: Id8003e5177ed9d37a7f0210037acbe55bbf7f708
- Commit:
83b1e7a39b1e5af82846c7e9632b802c39d96f83
- From:
- Dan Cross <cross@gajendra.net>
- Date:
9fs: remove tip (dead?), redirect sources to 9p.io
Fixes #195.
Signed-off-by: Dan Cross <cross@gajendra.net>
- Commit:
1d0d432ccb000b28de3309db5f8299357a46c903
- From:
- Russ Cox <rsc@swtch.com>
- Date:
devdraw: abort alt sequence on window change on macOS
Fixes #3.
- Commit:
23a23689807560ee80806a339be0f7e7cef6340d
- From:
- Dan Cross <cross@gajendra.net>
- Date:
libthread: NetBSD supports pthreads, remove ancient systems in sysofiles.sh
Signed-off-by: Dan Cross <cross@gajendra.net>
- Commit:
7bf2db4c2ae30c0f7b320e57060715bf6279e98a
- From:
- Dan Cross <cross@gajendra.net>
- Date:
malloc: remove locking
The issue manifests in fork: POSIX fork mandates that a
fork'd process is created with a single thread. If a
multithreaded program forks, and some thread was in
malloc() when the fork() happened, then in the child
the lock will be held but there will be no thread to
release it.
We assume the system malloc() must already know how to
deal with this and is thread-safe, but it won't know about
our custom spinlock. Judging that this is no longer
necessary (the lock code was added 15 years ago) we remove
it.
Signed-off-by: Dan Cross <cross@gajendra.net>
- Commit:
3ef80ba5f5c29a8367d32353a9620ec4cf9cb880
- From:
- Dan Cross <cross@gajendra.net>
- Date:
lib9: putenv wraps POSIX setenv, not legacy putenv
POSIX setenv does everything that p9putenv's body,
so just delegate to that.
Signed-off-by: Dan Cross <cross@gajendra.net>
- Commit:
0be57355f912dbedb76cea1a7a4f9a1deb5bde2b
- From:
- Russ Cox <rsc@golang.org>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
devdraw: avoid deadlock in x11 resize
Fixes #347.