Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
6606995c
Commit
6606995c
authored
Jan 29, 2011
by
Wei Guangjing
Committed by
Russ Cox
Jan 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix windows build
R=rsc CC=golang-dev
https://golang.org/cl/4124041
parent
64c7f70c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mem.c
src/pkg/runtime/windows/mem.c
+2
-2
No files found.
src/pkg/runtime/windows/mem.c
View file @
6606995c
...
...
@@ -34,7 +34,7 @@ void*
runtime
·
SysAlloc
(
uintptr
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
...
...
@@ -55,7 +55,7 @@ runtime·SysFree(void *v, uintptr n)
abort
(
"VirtualFree"
);
}
void
void
*
runtime
·
SysReserve
(
void
*
v
,
uintptr
n
)
{
return
runtime
·
stdcall
(
runtime
·
VirtualAlloc
,
4
,
v
,
n
,
MEM_RESERVE
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment