- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for setMaxStack (0.11 sec)
-
src/runtime/debug/garbage.go
// of the value provided to SetMaxStack. // // SetMaxStack is useful mainly for limiting the damage done by // goroutines that enter an infinite recursion. It only limits future // stack growth. func SetMaxStack(bytes int) int { return setMaxStack(bytes) } // SetMaxThreads sets the maximum number of operating system // threads that the Go program can use. If it attempts to use more than
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.9K bytes - Viewed (0) -
src/compress/flate/deflate_test.go
} } func TestMaxStackSize(t *testing.T) { // This test must not run in parallel with other tests as debug.SetMaxStack // affects all goroutines. n := debug.SetMaxStack(1 << 16) defer debug.SetMaxStack(n) var wg sync.WaitGroup defer wg.Wait() b := make([]byte, 1<<20) for level := HuffmanOnly; level <= BestCompression; level++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 25.6K bytes - Viewed (0) -
src/path/filepath/path_windows_test.go
} } } func TestUNC(t *testing.T) { // Test that this doesn't go into an infinite recursion. // See golang.org/issue/15879. defer debug.SetMaxStack(debug.SetMaxStack(1e6)) filepath.Glob(`\\?\c:\*`) } func testWalkMklink(t *testing.T, linktype string) { output, _ := exec.Command("cmd", "/c", "mklink", "/?").Output()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 20:38:54 UTC 2024 - 19.6K bytes - Viewed (0)