mirror of
https://github.com/golang/go
synced 2024-11-27 03:21:18 -07:00
runtime: fix warnings on Plan 9
warning: pkg/runtime/mgc0.c:2352 format mismatch p UVLONG, arg 2 warning: pkg/runtime/mgc0.c:2352 format mismatch p UVLONG, arg 3 LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/71950044
This commit is contained in:
parent
a1695d2ea3
commit
fb5e1e1fa1
@ -2349,7 +2349,7 @@ gc(struct gc_args *args)
|
|||||||
heap1 = mstats.heap_alloc;
|
heap1 = mstats.heap_alloc;
|
||||||
updatememstats(&stats);
|
updatememstats(&stats);
|
||||||
if(heap1 != mstats.heap_alloc) {
|
if(heap1 != mstats.heap_alloc) {
|
||||||
runtime·printf("runtime: mstats skew: heap=%p/%p\n", heap1, mstats.heap_alloc);
|
runtime·printf("runtime: mstats skew: heap=%D/%D\n", heap1, mstats.heap_alloc);
|
||||||
runtime·throw("mstats skew");
|
runtime·throw("mstats skew");
|
||||||
}
|
}
|
||||||
obj = mstats.nmalloc - mstats.nfree;
|
obj = mstats.nmalloc - mstats.nfree;
|
||||||
|
Loading…
Reference in New Issue
Block a user