Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for mappedReady (0.22 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)
  3. src/runtime/mgcpacer.go

    	var heapFree, heapAlloc, mappedReady uint64
    	for {
    		heapFree = c.heapFree.load()                         // Free and unscavenged memory.
    		heapAlloc = c.totalAlloc.Load() - c.totalFree.Load() // Heap object bytes in use.
    		mappedReady = c.mappedReady.Load()                   // Total unreleased mapped memory.
    		if heapFree+heapAlloc <= mappedReady {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  4. src/runtime/mstats.go

    		}
    		// Also check that mappedReady lines up with totalMapped - released.
    		// This isn't really the same type of "make sure consistent stats line up" situation,
    		// but this is an opportune time to check.
    		if gcController.mappedReady.Load() != totalMapped-uint64(consStats.released) {
    			print("runtime: mappedReady=", gcController.mappedReady.Load(), "\n")
    			print("runtime: totalMapped=", totalMapped, "\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  5. src/runtime/mgcscavenge.go

    	memoryLimitGoal := uint64(float64(memoryLimit) * (1 - reduceExtraPercent/100.0))
    
    	// mappedReady is comparable to memoryLimit, and represents how much total memory
    	// the Go runtime has committed now (estimated).
    	mappedReady := gcController.mappedReady.Load()
    
    	// If we're below the goal already indicate that we don't need the background
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  6. src/runtime/export_test.go

    	// Subtract back out whatever we mapped for the summaries.
    	// sysUsed adds to p.sysStat and memstats.mappedReady no matter what
    	// (and in anger should actually be accounted for), and there's no other
    	// way to figure out how much we actually mapped.
    	gcController.mappedReady.Add(-int64(p.summaryMappedReady))
    	testSysStat.add(-int64(p.summaryMappedReady))
    
    	// Free the mapped space for chunks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  7. src/runtime/mheap.go

    	if limit := gcController.memoryLimit.Load(); !gcCPULimiter.limiting() {
    		// Assist with scavenging to maintain the memory limit by the amount
    		// that we expect to page in.
    		inuse := gcController.mappedReady.Load()
    		// Be careful about overflow, especially with uintptrs. Even on 32-bit platforms
    		// someone can set a really big memory limit that isn't maxInt64.
    		if uint64(scav)+inuse > uint64(limit) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
Back to top