--- /n/sources/plan9/sys/src/libthread/lib.c Sat Jan 10 10:00:05 2015 +++ /sys/src/libthread/lib.c Sun Jun 28 00:00:00 2026 @@ -3,22 +3,18 @@ #include #include "threadimpl.h" -static long totalmalloc; +static vlong totalmalloc; void* -_threadmalloc(long size, int z) +_threadmalloc(uintptr size, int z) { void *m; m = malloc(size); if (m == nil) - sysfatal("Malloc of size %ld failed: %r", size); + sysfatal("Malloc of size %lld failed: %r", (vlong)size); setmalloctag(m, getcallerpc(&size)); totalmalloc += size; - if (size > 100000000) { - fprint(2, "Malloc of size %ld, total %ld\n", size, totalmalloc); - abort(); - } if (z) memset(m, 0, size); return m; --- /n/sources/plan9/sys/src/libthread/threadimpl.h Sat Jan 10 10:00:05 2015 +++ /sys/src/libthread/threadimpl.h Sun Jun 28 00:00:00 2026 @@ -187,7 +187,7 @@ void _threadflagrendez(Thread*); Proc* _threadgetproc(void); void _threadsetproc(Proc*); void _threadinitstack(Thread*, void(*)(void*), void*); -void* _threadmalloc(long, int); +void* _threadmalloc(uintptr, int); void _threadnote(void*, char*); void _threadready(Thread*); void* _threadrendezvous(void*, void*);