Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mappedReady (0.12 sec)

  1. src/runtime/mem.go

    // which prevents us from allocating more stack.
    //
    //go:nosplit
    func sysAlloc(n uintptr, sysStat *sysMemStat) unsafe.Pointer {
    	sysStat.add(int64(n))
    	gcController.mappedReady.Add(int64(n))
    	return sysAllocOS(n)
    }
    
    // sysUnused transitions a memory region from Ready to Prepared. It notifies the
    // operating system that the physical pages backing this memory region are no
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. src/runtime/mpagealloc_32bit.go

    func (s *scavengeIndex) sysInit(test bool, sysStat *sysMemStat) (mappedReady uintptr) {
    	if test {
    		// Set up the scavenge index via sysAlloc so the test can free it later.
    		scavIndexSize := uintptr(len(scavengeIndexArray)) * unsafe.Sizeof(atomicScavChunkData{})
    		s.chunks = ((*[(1 << heapAddrBits) / pallocChunkBytes]atomicScavChunkData)(sysAlloc(scavIndexSize, sysStat)))[:]
    		mappedReady = scavIndexSize
    	} else {
    		// Set up the scavenge index.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 20 20:08:25 UTC 2023
    - 4.6K bytes
    - Viewed (0)
Back to top