mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: cleanup some left-overs of the C past
Change-Id: I3e280ca7d922f6ab14b2477361327ed076a95779 Reviewed-on: https://go-review.googlesource.com/3743 Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
5ab3823c6b
commit
d2abbf3ccf
3 changed files with 21 additions and 108 deletions
|
|
@ -245,18 +245,6 @@ func lockedOSThread() bool {
|
|||
return gp.lockedm != nil && gp.m.lockedg != nil
|
||||
}
|
||||
|
||||
func newP() *p {
|
||||
return new(p)
|
||||
}
|
||||
|
||||
func newM() *m {
|
||||
return new(m)
|
||||
}
|
||||
|
||||
func newG() *g {
|
||||
return new(g)
|
||||
}
|
||||
|
||||
var (
|
||||
allgs []*g
|
||||
allglock mutex
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue