8c, 8l dynamic loading support.

better mach binaries.
cgo working on darwin+linux amd64+386.
eliminated context switches - pi is 30x faster.
add libcgo to build.

on snow leopard:
  - non-cgo binaries work; all tests pass.
  - cgo binaries work on amd64 but not 386.

R=r
DELTA=2031  (1316 added, 626 deleted, 89 changed)
OCL=35264
CL=35304
This commit is contained in:
Russ Cox 2009-10-03 10:37:12 -07:00
parent f15300beb7
commit 133a158bd8
52 changed files with 1336 additions and 642 deletions

View file

@ -92,7 +92,7 @@ futexwakeup(uint32 *addr)
//
// A reminder: compare-and-swap cas(addr, old, new) does
// if(*addr == old) { *addr = new; return 1; }
// else return 0;
// else return 0;
// but atomically.
static void