aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorAndy Pan <panjf2000@gmail.com>2023-08-10 14:02:03 +0800
committerMichael Knyszek <mknyszek@google.com>2023-08-21 17:10:00 +0000
commita7c3de705287d56e3bea8a84ed9a56e4102d3f39 (patch)
tree48ca7acfbb3090ff46ae0d6544d00b166d3b5c20 /src/runtime/runtime2.go
parent50f2b7b76481f045649d12d2a26dd36b7cc248a3 (diff)
downloadgo-a7c3de705287d56e3bea8a84ed9a56e4102d3f39.tar.xz
runtime: document maxStack and m.createstack in more details
Change-Id: If93b6cfa5a598a5f4101c879a0cd88a194e4a6aa Reviewed-on: https://go-review.googlesource.com/c/go/+/518116 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Andy Pan <panjf2000@gmail.com>
Diffstat (limited to 'src/runtime/runtime2.go')
-rw-r--r--src/runtime/runtime2.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go
index 2a02e1fb3b..885b493bad 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -583,7 +583,7 @@ type m struct {
alllink *m // on allm
schedlink muintptr
lockedg guintptr
- createstack [32]uintptr // stack that created this thread.
+ createstack [32]uintptr // stack that created this thread, it's used for StackRecord.Stack0, so it must align with it.
lockedExt uint32 // tracking for external LockOSThread
lockedInt uint32 // tracking for internal lockOSThread
nextwaitm muintptr // next m waiting for lock