- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for startTheWorldGC (0.17 sec)
-
src/runtime/debug.go
ret := int(gomaxprocs) unlock(&sched.lock) if n <= 0 || n == ret { return ret } stw := stopTheWorldGC(stwGOMAXPROCS) // newprocs will be processed by startTheWorld newprocs = int32(n) startTheWorldGC(stw) return ret } // NumCPU returns the number of logical CPUs usable by the current process. // // The set of available CPUs is checked by querying the operating system
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 11 20:38:24 UTC 2024 - 4.2K bytes - Viewed (0) -
src/internal/trace/trace_test.go
{"time.Sleep", 0}, {"main.main", 0}, }}, {trace.EventMetric, "/sched/gomaxprocs:threads", []frame{ {"runtime.startTheWorld", 0}, // this is when the current gomaxprocs is logged. {"runtime.startTheWorldGC", 0}, {"runtime.GOMAXPROCS", 0}, {"main.main", 0}, }}, } if !stress { // Only check for this stack if !stress because traceAdvance alone could
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 18.5K bytes - Viewed (0) -
src/runtime/proc.go
// until the GC is not running. It also blocks a GC from starting // until startTheWorldGC is called. func stopTheWorldGC(reason stwReason) worldStop { semacquire(&gcsema) return stopTheWorld(reason) } // startTheWorldGC undoes the effects of stopTheWorldGC. // // w must be the worldStop returned by stopTheWorld. func startTheWorldGC(w worldStop) { startTheWorld(w) semrelease(&gcsema) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0)