Skip to content

Commit 8afecda

Browse files
committedDec 1, 2016
Update various docs
1 parent ba001f8 commit 8afecda

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed
 

‎goid_go1.4.s

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// Assembly to get into package runtime without using exported symbols.
6-
// See http://tip.golang.org/misc/cgo/test/backdoor/thunk.s.
6+
// See https://github.com/golang/go/blob/release-branch.go1.4/misc/cgo/test/backdoor/thunk.s
77

88
// +build amd64 amd64p32 arm 386
99
// +build go1.4,!go1.5

‎goid_go1.5.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ package goid
44

55
import "unsafe"
66

7-
// Just enough of the structs from runtime2.go to get the offset to goid.
7+
// Just enough of the structs from runtime/runtime2.go to get the offset to goid.
8+
// See https://github.com/golang/go/blob/release-branch.go1.5/src/runtime/runtime2.go
89

910
type stack struct {
1011
lo uintptr

‎goid_go1.5plus.s

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// +build go1.5
55

66
#include "textflag.h"
7-
7+
88
// func getg() uintptr
99
TEXT ·getg(SB),NOSPLIT,$0-8
1010
MOVQ (TLS), BX

‎goid_go1.6plus.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package goid
55
import "unsafe"
66

77
// Just enough of the structs from runtime/runtime2.go to get the offset to goid.
8+
// See https://github.com/golang/go/blob/release-branch.go1.6/src/runtime/runtime2.go
89

910
type stack struct {
1011
lo uintptr
@@ -43,7 +44,7 @@ type g struct {
4344
}
4445

4546
// Backdoor access to runtime·getg().
46-
func getg() uintptr // in goid_go1.5plus.s
47+
func getg() uintptr // in goid_go1.5plus{,_arm}.s
4748

4849
func Get() int64 {
4950
gg := (*g)(unsafe.Pointer(getg()))

0 commit comments

Comments
 (0)
Please sign in to comment.