diff options
Diffstat (limited to 'src/runtime/stack.go')
| -rw-r--r-- | src/runtime/stack.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/runtime/stack.go b/src/runtime/stack.go index 54513eba65..01d6b9c22f 100644 --- a/src/runtime/stack.go +++ b/src/runtime/stack.go @@ -108,13 +108,16 @@ const ( stackDebug = 0 stackFromSystem = 0 // allocate stacks from system memory instead of the heap stackFaultOnFree = 0 // old stacks are mapped noaccess to detect use after free - stackPoisonCopy = 0 // fill stack that should not be accessed with garbage, to detect bad dereferences during copy stackNoCache = 0 // disable per-P small stack caches // check the BP links during traceback. debugCheckBP = false ) +var ( + stackPoisonCopy = 0 // fill stack that should not be accessed with garbage, to detect bad dereferences during copy +) + const ( uintptrMask = 1<<(8*goarch.PtrSize) - 1 |
