- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for should_stop_ (0.17 sec)
-
src/runtime/mgcscavenge.go
func (p *pageAlloc) scavenge(nbytes uintptr, shouldStop func() bool, force bool) uintptr { released := uintptr(0) for released < nbytes { ci, pageIdx := p.scav.index.find(force) if ci == 0 { break } systemstack(func() { released += p.scavengeOne(ci, pageIdx, nbytes-released) }) if shouldStop != nil && shouldStop() { break } } return released }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:48:45 UTC 2024 - 52.3K bytes - Viewed (0) -
src/runtime/export_test.go
Sleep func(int64) int64 Scavenge func(uintptr) (uintptr, int64) ShouldStop func() bool GoMaxProcs func() int32 released atomic.Uintptr scavenger scavengerState stop chan<- struct{} done <-chan struct{} } func (s *Scavenger) Start() { if s.Sleep == nil || s.Scavenge == nil || s.ShouldStop == nil || s.GoMaxProcs == nil { panic("must populate all stubs") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0)