File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ const (
39
39
// size of bucket hash table
40
40
buckHashSize = 179999
41
41
42
- // max depth of stack to record in bucket
42
+ // maxStack is the max depth of stack to record in bucket.
43
+ // Note that it's only used internally as a guard against
44
+ // wildly out-of-bounds slicing of the PCs that come after
45
+ // a bucket struct, and it could increase in the future.
43
46
maxStack = 32
44
47
)
45
48
Original file line number Diff line number Diff line change @@ -583,7 +583,7 @@ type m struct {
583
583
alllink * m // on allm
584
584
schedlink muintptr
585
585
lockedg guintptr
586
- createstack [32 ]uintptr // stack that created this thread.
586
+ createstack [32 ]uintptr // stack that created this thread, it's used for StackRecord.Stack0, so it must align with it .
587
587
lockedExt uint32 // tracking for external LockOSThread
588
588
lockedInt uint32 // tracking for internal lockOSThread
589
589
nextwaitm muintptr // next m waiting for lock
You can’t perform that action at this time.
0 commit comments