- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for checkindex (0.1 sec)
-
src/runtime/mpagecache.go
assertLockHeld(p.mheapLock) // If the searchAddr refers to a region which has a higher address than // any known chunk, then we know we're out of memory. if chunkIndex(p.searchAddr.addr()) >= p.end { return pageCache{} } c := pageCache{} ci := chunkIndex(p.searchAddr.addr()) // chunk index var chunk *pallocData if p.summary[len(p.summary)-1][ci] != 0 { // Fast path: there's free pages at or near the searchAddr address.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 19 14:30:00 UTC 2023 - 5.6K bytes - Viewed (0) -
src/runtime/mpagealloc_64bit.go
// because it comes from the OS, so it's sufficient to align the // index. haveMin := s.min.Load() haveMax := s.max.Load() needMin := alignDown(uintptr(chunkIndex(base)), physPageSize/scSize) needMax := alignUp(uintptr(chunkIndex(limit)), physPageSize/scSize) // We need a contiguous range, so extend the range if there's no overlap. if needMax < haveMin { needMax = haveMin }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 03 11:00:10 UTC 2024 - 9.3K bytes - Viewed (0)