build nits

R=r
DELTA=8  (0 added, 6 deleted, 2 changed)
OCL=25045
CL=25045
This commit is contained in:
Russ Cox 2009-02-15 13:41:48 -08:00
parent 3b3e63735e
commit 78a6d68c86
2 changed files with 2 additions and 8 deletions

View File

@ -52,12 +52,6 @@ time make
make smoketest make smoketest
) || exit $? ) || exit $?
# (xcd ../usr/gri/gosrc
# make clean
# time make
# # make test
# ) || exit $?
(xcd ../doc/progs (xcd ../doc/progs
time ./run time ./run
) || exit $? ) || exit $?

View File

@ -162,9 +162,9 @@ mlookup(void *v, byte **base, uintptr *size, uint32 **ref)
*size = n; *size = n;
nobj = (s->npages << PageShift) / (n + RefcountOverhead); nobj = (s->npages << PageShift) / (n + RefcountOverhead);
if((byte*)s->gcref < p || (byte*)(s->gcref+nobj) > p+(s->npages<<PageShift)) { if((byte*)s->gcref < p || (byte*)(s->gcref+nobj) > p+(s->npages<<PageShift)) {
printf("odd span state=%d span=%p base=%p sizeclass=%d n=%d size=%d npages=%d\n", printf("odd span state=%d span=%p base=%p sizeclass=%d n=%D size=%D npages=%D\n",
s->state, s, p, s->sizeclass, nobj, n, s->npages); s->state, s, p, s->sizeclass, nobj, n, s->npages);
printf("s->base sizeclass %d v=%p base=%p gcref=%p blocksize=%D nobj=%d size=%D end=%p end=%p\n", printf("s->base sizeclass %d v=%p base=%p gcref=%p blocksize=%D nobj=%D size=%D end=%p end=%p\n",
s->sizeclass, v, p, s->gcref, s->npages<<PageShift, s->sizeclass, v, p, s->gcref, s->npages<<PageShift,
nobj, n, s->gcref + nobj, p+(s->npages<<PageShift)); nobj, n, s->gcref + nobj, p+(s->npages<<PageShift));
throw("bad gcref"); throw("bad gcref");