Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
6606995c
Commit
6606995c
authored
Jan 28, 2011
by
Wei Guangjing
Committed by
Russ Cox
Jan 28, 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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/pkg/runtime/windows/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