- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for bgScanCredit (0.26 sec)
-
src/runtime/mgcmark.go
// do have to handle the negative credit case. bgScanCredit := gcController.bgScanCredit.Load() stolen := int64(0) if bgScanCredit > 0 { if bgScanCredit < scanWork { stolen = bgScanCredit gp.gcAssistBytes += 1 + int64(assistBytesPerWork*float64(stolen)) } else { stolen = scanWork gp.gcAssistBytes += debtBytes } gcController.bgScanCredit.Add(-stolen) scanWork -= stolen
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 21:25:11 UTC 2024 - 52.5K bytes - Viewed (0) -
src/runtime/mgcpacer.go
stackScanWork atomic.Int64 globalsScanWork atomic.Int64 // bgScanCredit is the scan work credit accumulated by the concurrent // background scan. This credit is accumulated by the background scan // and stolen by mutator assists. Updates occur in bounded batches, // since it is both written and read throughout the cycle. bgScanCredit atomic.Int64 // assistTime is the nanoseconds spent in mutator assists
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 55.4K bytes - Viewed (0) -
src/runtime/proc.go
// rapidly creating an exiting goroutines. assistWorkPerByte := gcController.assistWorkPerByte.Load() scanCredit := int64(assistWorkPerByte * float64(gp.gcAssistBytes)) gcController.bgScanCredit.Add(scanCredit) gp.gcAssistBytes = 0 } dropg() if GOARCH == "wasm" { // no threads yet on wasm gfput(pp, gp) return } if locked && mp.lockedInt != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0)