Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 109 for sysStat (0.21 sec)

  1. src/runtime/mem.go

    // or a megabyte. This memory is always immediately available for use.
    //
    // sysStat must be non-nil.
    //
    // Don't split the stack as this function may be invoked without a valid G,
    // 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)
    }
    
    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

    		if hi > len(p.summary[l]) {
    			p.summary[l] = p.summary[l][:hi]
    		}
    	}
    }
    
    // sysInit initializes the scavengeIndex' chunks array.
    //
    // Returns the amount of memory added to sysStat.
    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.
    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/mpagealloc_64bit.go

    			continue
    		}
    
    		// Map and commit need.
    		sysMap(unsafe.Pointer(need.base.addr()), need.size(), p.sysStat)
    		sysUsed(unsafe.Pointer(need.base.addr()), need.size(), need.size())
    		p.summaryMappedReady += need.size()
    	}
    
    	// Update the scavenge index.
    	p.summaryMappedReady += p.scav.index.sysGrow(base, limit, p.sysStat)
    }
    
    // sysGrow increases the index's backing store in response to a heap growth.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 03 11:00:10 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/runtime/mranges.go

    	totalBytes uintptr
    
    	// sysStat is the stat to track allocations by this type
    	sysStat *sysMemStat
    }
    
    func (a *addrRanges) init(sysStat *sysMemStat) {
    	ranges := (*notInHeapSlice)(unsafe.Pointer(&a.ranges))
    	ranges.len = 0
    	ranges.cap = 16
    	ranges.array = (*notInHeap)(persistentalloc(unsafe.Sizeof(addrRange{})*uintptr(ranges.cap), goarch.PtrSize, sysStat))
    	a.sysStat = sysStat
    	a.totalBytes = 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  5. src/runtime/mpagealloc.go

    		print("runtime: summary max pages = ", maxPackedValue, "\n")
    		throw("root level max pages doesn't fit in summary")
    	}
    	p.sysStat = sysStat
    
    	// Initialize p.inUse.
    	p.inUse.init(sysStat)
    
    	// System-dependent initialization.
    	p.sysInit(test)
    
    	// Start with the searchAddr in a state indicating there's no free memory.
    	p.searchAddr = maxSearchAddr()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  6. src/runtime/os_plan9.go

    // resources in minit, semacreate, or elsewhere. Do not take locks after calling this.
    func mdestroy(mp *m) {
    }
    
    var sysstat = []byte("/dev/sysstat\x00")
    
    func getproccount() int32 {
    	var buf [2048]byte
    	fd := open(&sysstat[0], _OREAD, 0)
    	if fd < 0 {
    		return 1
    	}
    	ncpu := int32(0)
    	for {
    		n := read(fd, unsafe.Pointer(&buf), int32(len(buf)))
    		if n <= 0 {
    			break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. src/archive/tar/stat_unix.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package tar
    
    import (
    	"io/fs"
    	"os/user"
    	"runtime"
    	"strconv"
    	"sync"
    	"syscall"
    )
    
    func init() {
    	sysStat = statUnix
    }
    
    // userMap and groupMap caches UID and GID lookups for performance reasons.
    // The downside is that renaming uname or gname by the OS never takes effect.
    var userMap, groupMap sync.Map // map[int]string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. src/archive/tar/common.go

    	case TypeFifo:
    		mode |= fs.ModeNamedPipe
    	}
    
    	return mode
    }
    
    func (fi headerFileInfo) String() string {
    	return fs.FormatFileInfo(fi)
    }
    
    // sysStat, if non-nil, populates h from system-dependent fields of fi.
    var sysStat func(fi fs.FileInfo, h *Header, doNameLookups bool) error
    
    const (
    	// Mode constants from the USTAR spec:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. src/runtime/malloc.go

    // The returned memory will be zeroed.
    // sysStat must be non-nil.
    //
    // Consider marking persistentalloc'd types not in heap by embedding
    // runtime/internal/sys.NotInHeap.
    func persistentalloc(size, align uintptr, sysStat *sysMemStat) unsafe.Pointer {
    	var p *notInHeap
    	systemstack(func() {
    		p = persistentalloc1(size, align, sysStat)
    	})
    	return unsafe.Pointer(p)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  10. src/runtime/mgcscavenge.go

    //
    // Returns the amount added to sysStat.
    func (s *scavengeIndex) init(test bool, sysStat *sysMemStat) uintptr {
    	s.searchAddrBg.Clear()
    	s.searchAddrForce.Clear()
    	s.freeHWM = minOffAddr
    	s.test = test
    	return s.sysInit(test, sysStat)
    }
    
    // sysGrow updates the index's backing store in response to a heap growth.
    //
    // Returns the amount of memory added to sysStat.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
Back to top