mirror of
https://github.com/golang/go
synced 2024-09-05 07:54:46 +00:00
internal/trace: fix event ordering for coarse timestamps
Arm arch uses coarse-grained kernel timer as cputicks. As the result sort.Sort smashes trace entirely. Use sort.Stable instead. Change-Id: Idfa017a86a489be58cf239f7fe56d7f4b66b52a9 Reviewed-on: https://go-review.googlesource.com/22317 Run-TryBot: Dmitry Vyukov <dvyukov@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
parent
75b844f0d2
commit
c4c182140a
|
@ -133,7 +133,7 @@ func order1007(m map[int][]*Event) (events []*Event, err error) {
|
||||||
ev.Ts = ts
|
ev.Ts = ts
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sort.Sort(eventList(events))
|
sort.Stable(eventList(events))
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue