Please sign in to comment.
[release-branch.go1.9] runtime: in cpuProfile.addExtra, set p.lostExt…
…ra to 0 after flush After the number of lost extra events are written to the the cpuprof log, the number of lost extra events should be set to zero, or else, the next time time addExtra is logged, lostExtra will be overcounted. This change resets lostExtra after its value is written to the log. Fixes #21836 Change-Id: I8a6ac9c61e579e7a5ca7bdb0f3463f8ae8b9f863 Reviewed-on: https://go-review.googlesource.com/63270 Reviewed-by: Austin Clements <email@example.com> Run-TryBot: Austin Clements <firstname.lastname@example.org> TryBot-Result: Gobot Gobot <email@example.com> (cherry picked from commit 96b1eff) Reviewed-on: https://go-review.googlesource.com/63310 Run-TryBot: Ian Lance Taylor <firstname.lastname@example.org>
- Loading branch information...