Commit 6606995c authored by Wei Guangjing's avatar Wei Guangjing Committed by Russ Cox

fix windows build

R=rsc
CC=golang-dev
https://golang.org/cl/4124041
parent 64c7f70c
...@@ -34,7 +34,7 @@ void* ...@@ -34,7 +34,7 @@ void*
runtime·SysAlloc(uintptr n) runtime·SysAlloc(uintptr n)
{ {
mstats.sys += n; mstats.sys += n;
return runtime·stdcall(runtime·VirtualAlloc, 4, v, n, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); return runtime·stdcall(runtime·VirtualAlloc, 4, nil, n, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
} }
void void
...@@ -55,7 +55,7 @@ runtime·SysFree(void *v, uintptr n) ...@@ -55,7 +55,7 @@ runtime·SysFree(void *v, uintptr n)
abort("VirtualFree"); abort("VirtualFree");
} }
void void*
runtime·SysReserve(void *v, uintptr n) runtime·SysReserve(void *v, uintptr n)
{ {
return runtime·stdcall(runtime·VirtualAlloc, 4, v, n, MEM_RESERVE, 0); return runtime·stdcall(runtime·VirtualAlloc, 4, v, n, MEM_RESERVE, 0);
......
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