aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/linux
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-09-27 12:50:01 -0400
committerRuss Cox <rsc@golang.org>2010-09-27 12:50:01 -0400
commit929fdd860bec522d6fbb7e23cc64b2bf6e65a74b (patch)
tree5a7cc1dee9384f4ade3e5a4617669d6cbde24343 /src/pkg/runtime/linux
parent9b62461a8f6b1df33c1d71211edd7c9652ebf16a (diff)
downloadgo-929fdd860bec522d6fbb7e23cc64b2bf6e65a74b.tar.xz
runtime: correct stats in SysFree
R=r CC=golang-dev https://golang.org/cl/2254047
Diffstat (limited to 'src/pkg/runtime/linux')
-rw-r--r--src/pkg/runtime/linux/mem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/linux/mem.c b/src/pkg/runtime/linux/mem.c
index ab47787f6c..bad67001c4 100644
--- a/src/pkg/runtime/linux/mem.c
+++ b/src/pkg/runtime/linux/mem.c
@@ -33,6 +33,7 @@ SysUnused(void *v, uintptr n)
void
SysFree(void *v, uintptr n)
{
+ mstats.sys -= n;
runtime_munmap(v, n);
}