- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for setMaxThreads (0.17 sec)
-
src/runtime/debug/stubs.go
import ( "time" ) // Implemented in package runtime. func readGCStats(*[]time.Duration) func freeOSMemory() func setMaxStack(int) int func setGCPercent(int32) int32 func setPanicOnFault(bool) bool func setMaxThreads(int) int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 03 15:12:04 UTC 2022 - 435 bytes - Viewed (0) -
src/runtime/debug/garbage_test.go
// // This can only happen when ints are 64 bits, since on platforms // with 32 bit ints SetMaxThreads (which takes an int parameter) // cannot be given anything that will overflow an int32. // // Call SetMaxThreads with 1<<31, but only on 64 bit systems. nt := SetMaxThreads(1 << (30 + ^uint(0)>>63)) SetMaxThreads(nt) // restore previous value
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 19 14:30:00 UTC 2023 - 7.2K bytes - Viewed (0) -
cmd/server-rlimit.go
sysMaxThreads, err := sys.GetMaxThreads() if err == nil { minioMaxThreads := (sysMaxThreads * 90) / 100 // Only set max threads if it is greater than the default one if minioMaxThreads > 10000 { debug.SetMaxThreads(minioMaxThreads) } } var maxLimit uint64 // Set open files limit to maximum. if _, maxLimit, err = sys.GetMaxOpenFileLimit(); err != nil { return err }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 30 11:58:12 UTC 2024 - 2.9K bytes - Viewed (0) -
src/runtime/testdata/testprog/deadlock.go
} func StackOverflow() { var f func() byte f = func() byte { var buf [64 << 10]byte return buf[0] + f() } debug.SetMaxStack(1474560) f() } func ThreadExhaustion() { debug.SetMaxThreads(10) c := make(chan int) for i := 0; i < 100; i++ { go func() { runtime.LockOSThread() c <- 0 select {} }() <-c } } func RecursivePanic() { func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 27 20:44:24 UTC 2021 - 6.5K bytes - Viewed (0)