mirror of
https://github.com/golang/go
synced 2024-11-19 21:24:40 -07:00
runtime: save correct pid for new m's on plan9/amd64
The pid field in the Tos structure is a 32-bit value. Loading a 64-bit word also brings in the next field which is used for the profiling clock. LGTM=0intro, aram R=rsc, 0intro, aram CC=golang-codereviews, mischief https://golang.org/cl/139560044
This commit is contained in:
parent
860a645927
commit
70f928698b
@ -149,7 +149,7 @@ TEXT runtime·tstart_plan9(SB),NOSPLIT,$0
|
|||||||
|
|
||||||
// Initialize procid from TOS struct.
|
// Initialize procid from TOS struct.
|
||||||
MOVQ _tos(SB), AX
|
MOVQ _tos(SB), AX
|
||||||
MOVQ 64(AX), AX
|
MOVL 64(AX), AX
|
||||||
MOVQ AX, m_procid(CX) // save pid as m->procid
|
MOVQ AX, m_procid(CX) // save pid as m->procid
|
||||||
|
|
||||||
// Finally, initialize g.
|
// Finally, initialize g.
|
||||||
|
Loading…
Reference in New Issue
Block a user