]> Cypherpunks repositories - gostls13.git/commit
runtime: call nanotimeQPC from nanotime1 without a wrapper
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 18 Mar 2021 16:01:23 +0000 (16:01 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 19 Mar 2021 17:07:35 +0000 (17:07 +0000)
commit4deaa6a178d89631302470f78574c1e957cf84a5
tree74284bc4674ee877284a5723a5203cdf9dc28f49
parente58fb90c753ce8ac1ccd6e26035e7ec0f4f108bc
runtime: call nanotimeQPC from nanotime1 without a wrapper

This changes makes it so that nanotimeQPC calls nanotime1 without an ABI
wrapper by specifying the ABIInternal version directly. The reason why
this is necessary is because ABI wrappers typically require additional
stack space, and nanotimeQPC is used deep within nosplit contexts,
and with the ABI wrappers now enabled, this exhausts the stack guard
space held for nosplit functions. Rather than increase the stack guard,
we choose to do this.

For #40724.

Change-Id: Ia9173ca903335a9d6f380f57f4a45e49b58da6bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/303069
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/sys_windows_amd64.s