diff options
Diffstat (limited to 'libgo/go/runtime/mstkbar.go')
-rw-r--r-- | libgo/go/runtime/mstkbar.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgo/go/runtime/mstkbar.go b/libgo/go/runtime/mstkbar.go index 6d0b5ac211b..616c220132f 100644 --- a/libgo/go/runtime/mstkbar.go +++ b/libgo/go/runtime/mstkbar.go @@ -150,6 +150,10 @@ var firstStackBarrierOffset = 1024 // gcMaxStackBarriers returns the maximum number of stack barriers // that can be installed in a stack of stackSize bytes. func gcMaxStackBarriers(stackSize int) (n int) { + if debug.gcstackbarrieroff > 0 { + return 0 + } + if firstStackBarrierOffset == 0 { // Special debugging case for inserting stack barriers // at every frame. Steal half of the stack for the |