diff --git a/src/runtime/runtime1.go b/src/runtime/runtime1.go index 92a7e021ee23b5..330b3d61b4905d 100644 --- a/src/runtime/runtime1.go +++ b/src/runtime/runtime1.go @@ -381,6 +381,11 @@ func parsedebugvars() { debug.madvdontneed = 1 } + // Beep beep: disable stack shrinking, possibly to fix: + // https://linear.app/beeper/issue/BLEEP-25986#comment-99e33468 + // https://github.com/golang/go/issues/64781 + debug.gcshrinkstackoff = 1 + godebug := gogetenv("GODEBUG") p := new(string)