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
d89b357f
Commit
d89b357f
authored
Apr 06, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: handle malloc > 2GB correctly
R=ken2 CC=golang-dev
https://golang.org/cl/821048
parent
99d258a2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
sys.s
src/pkg/runtime/darwin/amd64/sys.s
+5
-5
sys.s
src/pkg/runtime/freebsd/amd64/sys.s
+6
-6
sys.s
src/pkg/runtime/linux/amd64/sys.s
+6
-6
runtime.h
src/pkg/runtime/runtime.h
+1
-1
No files found.
src/pkg/runtime/darwin/amd64/sys.s
View file @
d89b357f
...
...
@@ -77,11 +77,11 @@ TEXT sigtramp(SB),7,$40
TEXT ·mmap(SB),7,$0
MOVQ 8(SP), DI // arg 1 addr
MOV
L
16(SP), SI // arg 2 len
MOVL 2
0
(SP), DX // arg 3 prot
MOVL 2
4
(SP), R10 // arg 4 flags
MOVL
28
(SP), R8 // arg 5 fid
MOVL 3
2
(SP), R9 // arg 6 offset
MOV
Q
16(SP), SI // arg 2 len
MOVL 2
4
(SP), DX // arg 3 prot
MOVL 2
8
(SP), R10 // arg 4 flags
MOVL
32
(SP), R8 // arg 5 fid
MOVL 3
6
(SP), R9 // arg 6 offset
MOVL $(0x2000000+197), AX // syscall entry
SYSCALL
JCC 2(PC)
...
...
src/pkg/runtime/freebsd/amd64/sys.s
View file @
d89b357f
...
...
@@ -91,13 +91,13 @@ TEXT sigtramp(SB),7,$24-16
CALL sighandler(SB)
RET
TEXT ·mmap(SB),7,$
-8
TEXT ·mmap(SB),7,$
0
MOVQ 8(SP), DI // arg 1 addr
MOV
L
16(SP), SI // arg 2 len
MOVL 2
0
(SP), DX // arg 3 prot
MOVL 2
4
(SP), R10 // arg 4 flags
MOVL
28
(SP), R8 // arg 5 fid
MOVL 3
2
(SP), R9 // arg 6 offset
MOV
Q
16(SP), SI // arg 2 len
MOVL 2
4
(SP), DX // arg 3 prot
MOVL 2
8
(SP), R10 // arg 4 flags
MOVL
32
(SP), R8 // arg 5 fid
MOVL 3
6
(SP), R9 // arg 6 offset
MOVL $477, AX
SYSCALL
JCC 2(PC)
...
...
src/pkg/runtime/linux/amd64/sys.s
View file @
d89b357f
...
...
@@ -76,14 +76,14 @@ TEXT sigreturn(SB),7,$0
SYSCALL
INT $3 // not reached
TEXT ·mmap(SB),7,$0
-32
TEXT ·mmap(SB),7,$0
MOVQ 8(SP), DI
MOVQ $0, SI
MOV
L
16(SP), SI
MOVL 2
0
(SP), DX
MOVL 2
4
(SP), R10
MOVL
28
(SP), R8
MOVL 3
2
(SP), R9
MOV
Q
16(SP), SI
MOVL 2
4
(SP), DX
MOVL 2
8
(SP), R10
MOVL
32
(SP), R8
MOVL 3
6
(SP), R9
MOVL $9, AX // syscall entry
SYSCALL
...
...
src/pkg/runtime/runtime.h
View file @
d89b357f
...
...
@@ -511,7 +511,7 @@ void notewakeup(Note*);
/*
* low level go-called
*/
uint8
*
runtime_mmap
(
byte
*
,
uint
32
,
int32
,
int32
,
int32
,
uint32
);
uint8
*
runtime_mmap
(
byte
*
,
uint
ptr
,
int32
,
int32
,
int32
,
uint32
);
void
runtime_memclr
(
byte
*
,
uint32
);
void
runtime_setcallerpc
(
void
*
,
void
*
);
void
*
runtime_getcallerpc
(
void
*
);
...
...
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