diff options
author | rsc <devnull@localhost> | 2004-04-21 23:43:46 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-21 23:43:46 +0000 |
commit | 7e42d210121c9c2898caddcfc09d7e8d836c252e (patch) | |
tree | f83363d352e4ecfd3ae4c2d0c166cfa955c41c5d /src/libthread | |
parent | e12fa2a49ba303cee8d302f1911bd55545ada98e (diff) | |
download | plan9port-7e42d210121c9c2898caddcfc09d7e8d836c252e.tar.gz plan9port-7e42d210121c9c2898caddcfc09d7e8d836c252e.tar.bz2 plan9port-7e42d210121c9c2898caddcfc09d7e8d836c252e.zip |
odds and ends
Diffstat (limited to 'src/libthread')
-rw-r--r-- | src/libthread/386.c | 1 | ||||
-rw-r--r-- | src/libthread/channel.c | 2 | ||||
-rw-r--r-- | src/libthread/mkfile | 6 |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/libthread/386.c b/src/libthread/386.c index 3fbf0afe..d8052f09 100644 --- a/src/libthread/386.c +++ b/src/libthread/386.c @@ -3,7 +3,6 @@ * To use this you need some patches to Valgrind that * let it help out with detecting stack overflow. */ -#define USEVALGRIND 0 #ifdef USEVALGRIND #include <valgrind/memcheck.h> #endif diff --git a/src/libthread/channel.c b/src/libthread/channel.c index ce27896b..68eaa95e 100644 --- a/src/libthread/channel.c +++ b/src/libthread/channel.c @@ -497,7 +497,7 @@ altexec(Alt *a, int spl) _threaddebug(DBGCHAN, "unlocking the chanlock"); unlock(&chanlock); _procsplx(spl); - _threaddebug(DBGCHAN, "chanlock is %lud", *(ulong*)&chanlock); + _threaddebug(DBGCHAN, "chanlock is %lud", *(ulong*)(void*)&chanlock); while(_threadrendezvous((ulong)b->tag, 0) == ~0) ; return 1; diff --git a/src/libthread/mkfile b/src/libthread/mkfile index a76682b2..1ced9021 100644 --- a/src/libthread/mkfile +++ b/src/libthread/mkfile @@ -56,3 +56,9 @@ CLEANFILES=$CLEANFILES tprimes texec asm-Linux-386.$O: asm-FreeBSD-386.s asm-NetBSD-386.$O: asm-FreeBSD-386.s asm-OpenBSD-386.$O: asm-FreeBSD-386.s + +# sorry +VG=`test -d /home/rsc/pub/valgrind-debian && echo -DUSEVALGRIND` + +CFLAGS=$CFLAGS $VG + |