1
0
mirror of https://github.com/golang/go synced 2024-11-19 09:24:39 -07:00

runtime: correct stats in SysFree

R=r
CC=golang-dev
https://golang.org/cl/2254047
This commit is contained in:
Russ Cox 2010-09-27 12:50:01 -04:00
parent 9b62461a8f
commit 929fdd860b
4 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,7 @@ SysUnused(void *v, uintptr n)
void
SysFree(void *v, uintptr n)
{
mstats.sys -= n;
runtime_munmap(v, n);
}

View File

@ -21,6 +21,7 @@ SysUnused(void *v, uintptr n)
void
SysFree(void *v, uintptr n)
{
mstats.sys -= n;
runtime_munmap(v, n);
}

View File

@ -33,6 +33,7 @@ SysUnused(void *v, uintptr n)
void
SysFree(void *v, uintptr n)
{
mstats.sys -= n;
runtime_munmap(v, n);
}

View File

@ -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);
}