aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec_test.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2021-11-16 11:46:42 -0500
committerMichael Pratt <mpratt@google.com>2021-11-16 17:13:33 +0000
commit29ec902efc0ae53c4435097efdb738667466756c (patch)
tree3bd3c18b97049e111c013d474d60f21019398200 /src/os/exec/exec_test.go
parent79d0013f53d4199b9f84d813221b71adf7eb1e4d (diff)
downloadgo-29ec902efc0ae53c4435097efdb738667466756c.tar.xz
runtime: get tracking time only when needed
casgstatus currently calls nanotime on every casgstatus when tracking, even though the time is only used in some cases. For goroutines making lots of transitions that aren't covered here, this can add a small overhead. Switch to calling nanotime only when necessary. Change-Id: I2617869332e8289ef33dd674d786e44dea09aaba Reviewed-on: https://go-review.googlesource.com/c/go/+/364375 Trust: Michael Pratt <mpratt@google.com> Run-TryBot: Michael Pratt <mpratt@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/os/exec/exec_test.go')
0 files changed, 0 insertions, 0 deletions