]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: add note about default stack bounds
authorMichael Pratt <mpratt@google.com>
Mon, 12 Feb 2024 19:32:22 +0000 (14:32 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 12 Feb 2024 22:38:23 +0000 (22:38 +0000)
commite45c262fe55ada091a4ae53bf140ff22d9f74b35
treec54eab69c21608a00a7355bdbafa8c72b7952edb
parent4619121d8491ad44884529e6294b576e4ed6296a
runtime/cgo: add note about default stack bounds

The default case in x_cgo_getstackbound does not actually get the stack bound of
the current thread, but estimates the bound based on the default stack size. Add
a comment noting this.

Change-Id: I7d886461f0bbc795834bed37b554417cf3837a2d
Reviewed-on: https://go-review.googlesource.com/c/go/+/563376
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/cgo/gcc_stack_unix.c