From 44bb3812200998048aef95f313716d6908c045ed Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Thu, 11 Nov 2021 08:29:53 -0800 Subject: [PATCH] src/runtime/debug: add SetMaxStack to allow compress/flate tests to build --- src/runtime/debug/debug.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/runtime/debug/debug.go b/src/runtime/debug/debug.go index d6fa034a..625d8bbe 100644 --- a/src/runtime/debug/debug.go +++ b/src/runtime/debug/debug.go @@ -1,2 +1,10 @@ // Package debug is a dummy package that is not yet implemented. package debug + +// SetMaxStack sets the maximum amount of memory that can be used by a single +// goroutine stack. +// +// Not implemented. +func SetMaxStack(n int) int { + return n +}