Commit 929fdd86 authored by Russ Cox's avatar Russ Cox

runtime: correct stats in SysFree

R=r
CC=golang-dev
https://golang.org/cl/2254047
parent 9b62461a
......@@ -21,6 +21,7 @@ SysUnused(void *v, uintptr n)
void
SysFree(void *v, uintptr n)
{
mstats.sys -= n;
runtime_munmap(v, n);
}
......@@ -21,6 +21,7 @@ SysUnused(void *v, uintptr n)
void
SysFree(void *v, uintptr n)
{
mstats.sys -= n;
runtime_munmap(v, n);
}
......@@ -33,6 +33,7 @@ SysUnused(void *v, uintptr n)
void
SysFree(void *v, uintptr n)
{
mstats.sys -= n;
runtime_munmap(v, n);
}
......@@ -26,6 +26,7 @@ void
SysFree(void *v, uintptr n)
{
// round to page size or else nacl prints annoying log messages
mstats.sys -= n;
n = (n+NaclPage-1) & ~(NaclPage-1);
runtime_munmap(v, n);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment