diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-08-14 21:54:07 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-08-14 21:54:07 +0400 |
| commit | 4e76abbc6042ba7f415c5932674d0608528c9c42 (patch) | |
| tree | c05fdc892633dd26ebb0edb202d5ebd7ff6f024f /src/pkg/runtime/malloc.h | |
| parent | f8ca13c3e5a85d6f9dbce499aca8006c104376ee (diff) | |
| download | go-4e76abbc6042ba7f415c5932674d0608528c9c42.tar.xz | |
runtime: implement SysUnused on windows
Fixes #5584.
R=golang-dev, chaishushan, alex.brainman
CC=golang-dev
https://golang.org/cl/12720043
Diffstat (limited to 'src/pkg/runtime/malloc.h')
| -rw-r--r-- | src/pkg/runtime/malloc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h index 20cf6fb96b..36166543ee 100644 --- a/src/pkg/runtime/malloc.h +++ b/src/pkg/runtime/malloc.h @@ -157,8 +157,9 @@ struct MLink // // SysUnused notifies the operating system that the contents // of the memory region are no longer needed and can be reused -// for other purposes. The program reserves the right to start -// accessing those pages in the future. +// for other purposes. +// SysUsed notifies the operating system that the contents +// of the memory region are needed again. // // SysFree returns it unconditionally; this is only used if // an out-of-memory error has been detected midway through @@ -174,6 +175,7 @@ struct MLink void* runtime·SysAlloc(uintptr nbytes); void runtime·SysFree(void *v, uintptr nbytes); void runtime·SysUnused(void *v, uintptr nbytes); +void runtime·SysUsed(void *v, uintptr nbytes); void runtime·SysMap(void *v, uintptr nbytes); void* runtime·SysReserve(void *v, uintptr nbytes); |
