- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for semacquire (0.62 sec)
-
src/runtime/mgc.go
if debug.gcstoptheworld == 1 { mode = gcForceMode } else if debug.gcstoptheworld == 2 { mode = gcForceBlockMode } // Ok, we're doing it! Stop everybody else semacquire(&gcsema) semacquire(&worldsema) // For stats, check if this GC was forced by the user. // Update it under gcsema to avoid gctrace getting wrong values. work.userForced = trigger.kind == gcTriggerCycle
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62K bytes - Viewed (0) -
src/runtime/mprof.go
// allocation estimate without bothering to STW. As long as // this is close, then we'll only need to STW once (on the next // call). return int(gcount()), false } semacquire(&goroutineProfile.sema) ourg := getg() pcbuf := makeProfStack() // see saveg() for explanation stw := stopTheWorld(stwGoroutineProfile)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 53.3K bytes - Viewed (0) -
src/testing/testing.go
err := t.runCleanup(recoverAndReturnPanic) t.duration += highPrecisionTimeSince(cleanupStart) if err != nil { doPanic(err) } t.checkRaces() if !t.isParallel { // Reacquire the count for sequential tests. See comment in Run. t.context.waitParallel() } } else if t.isParallel { // Only release the count for this test if it was run as a parallel
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0)