mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: merge clone0 and clone
We initially added clone0 to handle the case when G or M don't exist, but it turns out that we could have just modified clone. (It also helps that the function we're invoking in clone0 no longer needs arguments.) As a side-effect, newosproc0 is now supported on all linux archs. Change-Id: Ie603af75d8f164310fc16446052d83743961f3ca Reviewed-on: https://go-review.googlesource.com/9164 Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
parent
3f91a017f8
commit
ca9128f18f
13 changed files with 136 additions and 148 deletions
|
|
@ -22,6 +22,8 @@ var Entersyscall = entersyscall
|
|||
var Exitsyscall = exitsyscall
|
||||
var LockedOSThread = lockedOSThread
|
||||
|
||||
var FuncPC = funcPC
|
||||
|
||||
type LFNode struct {
|
||||
Next uint64
|
||||
Pushcnt uintptr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue