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
e0213576
Commit
e0213576
authored
Jan 22, 2012
by
Shenghou Ma
Committed by
Rob Pike
Jan 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: update out-of-date comment
R=golang-dev, r CC=golang-dev
https://golang.org/cl/5532118
parent
87079cc1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
src/pkg/runtime/asm_arm.s
src/pkg/runtime/asm_arm.s
+1
-1
src/pkg/runtime/cgocall.c
src/pkg/runtime/cgocall.c
+2
-2
src/pkg/runtime/sys_freebsd_386.s
src/pkg/runtime/sys_freebsd_386.s
+1
-1
src/pkg/runtime/thread_darwin.c
src/pkg/runtime/thread_darwin.c
+2
-2
No files found.
src/pkg/runtime/asm_arm.s
View file @
e0213576
...
...
@@ -277,7 +277,7 @@ TEXT runtime·abort(SB),7,$-4
//
}
else
//
return
0
;
//
//
To
implement
runtime
·
cas
in
..
/
$GOOS
/
arm
/
sys
.
s
//
To
implement
runtime
·
cas
in
sys_
$GOOS_arm
.
s
//
using
the
native
instructions
,
use
:
//
//
TEXT
runtime
·
cas
(
SB
),
7
,
$
0
...
...
src/pkg/runtime/cgocall.c
View file @
e0213576
...
...
@@ -17,7 +17,7 @@
// so as not to block other goroutines or the garbage collector,
// and then calls runtime.asmcgocall(_cgo_Cfunc_f, frame).
//
// runtime.asmcgocall (in
$GOARCH/asm
.s) switches to the m->g0 stack
// runtime.asmcgocall (in
asm_$GOARCH
.s) switches to the m->g0 stack
// (assumed to be an operating system-allocated stack, so safe to run
// gcc-compiled code on) and calls _cgo_Cfunc_f(frame).
//
...
...
@@ -55,7 +55,7 @@
// with 6c instead of gcc, can refer to dotted names like
// runtime.cgocallback and p.GoF.)
//
// runtime.cgocallback (in
$GOOS/asm
.s) switches from m->g0's
// runtime.cgocallback (in
asm_$GOARCH
.s) switches from m->g0's
// stack to the original g (m->curg)'s stack, on which it calls
// runtime.cgocallbackg(p.GoF, frame, framesize).
// As part of the stack switch, runtime.cgocallback saves the current
...
...
src/pkg/runtime/sys_freebsd_386.s
View file @
e0213576
...
...
@@ -238,7 +238,7 @@ int i386_set_ldt(int, const union ldt_entry *, int);
//
setldt
(
int
entry
,
int
address
,
int
limit
)
TEXT
runtime
·
setldt
(
SB
),7,$32
MOVL
address
+
4
(
FP
),
BX
//
aka
base
//
see
comment
in
linux
/
386
/
sys
.
s
; freebsd is similar
//
see
comment
in
sys_linux_386
.
s
; freebsd is similar
ADDL
$
0x8
,
BX
//
set
up
data_desc
...
...
src/pkg/runtime/thread_darwin.c
View file @
e0213576
...
...
@@ -39,7 +39,7 @@ runtime·semacreate(void)
void
runtime
·
osinit
(
void
)
{
// Register our thread-creation callback (see
{amd64,386}/sys
.s)
// Register our thread-creation callback (see
sys_darwin_{amd64,386}
.s)
// but only if we're not using cgo. If we are using cgo we need
// to let the C pthread libary install its own thread-creation callback.
if
(
!
runtime
·
iscgo
)
...
...
@@ -338,7 +338,7 @@ runtime·mach_semdestroy(uint32 sem)
}
}
// The other calls have simple system call traps in sys.s
// The other calls have simple system call traps in sys
_darwin_{amd64,386}
.s
int32
runtime
·
mach_semaphore_wait
(
uint32
sema
);
int32
runtime
·
mach_semaphore_timedwait
(
uint32
sema
,
uint32
sec
,
uint32
nsec
);
int32
runtime
·
mach_semaphore_signal
(
uint32
sema
);
...
...
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