mirror of
https://github.com/golang/go
synced 2024-11-12 07:40:23 -07:00
runtime: simplify stack copying in ThreadCreateProfile
Change-Id: I7414d2fab18ae6e7e7c50f8697ec64d38290f409 Reviewed-on: https://go-review.googlesource.com/19817 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
36694064e5
commit
756ea30eb0
@ -506,9 +506,7 @@ func ThreadCreateProfile(p []StackRecord) (n int, ok bool) {
|
|||||||
ok = true
|
ok = true
|
||||||
i := 0
|
i := 0
|
||||||
for mp := first; mp != nil; mp = mp.alllink {
|
for mp := first; mp != nil; mp = mp.alllink {
|
||||||
for s := range mp.createstack {
|
p[i].Stack0 = mp.createstack
|
||||||
p[i].Stack0[s] = uintptr(mp.createstack[s])
|
|
||||||
}
|
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user