Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for physPageSize (0.33 sec)

  1. src/runtime/vdso_freebsd_x86.go

    		atomic.Casuintptr(&hpetDevMap[idx], 0, ^uintptr(0))
    		return
    	}
    
    	addr, mmapErr := mmap(nil, physPageSize, _PROT_READ, _MAP_SHARED, fd, 0)
    	closefd(fd)
    	newP := uintptr(addr)
    	if mmapErr != 0 {
    		newP = ^uintptr(0)
    	}
    	if !atomic.Casuintptr(&hpetDevMap[idx], 0, newP) && mmapErr == 0 {
    		munmap(addr, physPageSize)
    	}
    }
    
    //go:nosplit
    func (th *vdsoTimehands) getTimecounter() (uint32, bool) {
    	switch th.algo {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/runtime/mem_linux.go

    			exit(2)
    		}
    		return nil
    	}
    	return p
    }
    
    var adviseUnused = uint32(_MADV_FREE)
    
    const madviseUnsupported = 0
    
    func sysUnusedOS(v unsafe.Pointer, n uintptr) {
    	if uintptr(v)&(physPageSize-1) != 0 || n&(physPageSize-1) != 0 {
    		// madvise will round this to any physical page
    		// *covered* by this range, so an unaligned madvise
    		// will release more memory than intended.
    		throw("unaligned sysUnused")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/runtime/mpagealloc_64bit.go

    	// range of indices.
    	summaryRangeToSumAddrRange := func(level, sumIdxBase, sumIdxLimit int) addrRange {
    		baseOffset := alignDown(uintptr(sumIdxBase)*pallocSumBytes, physPageSize)
    		limitOffset := alignUp(uintptr(sumIdxLimit)*pallocSumBytes, physPageSize)
    		base := unsafe.Pointer(&p.summary[level][0])
    		return addrRange{
    			offAddr{uintptr(add(base, baseOffset))},
    			offAddr{uintptr(add(base, limitOffset))},
    		}
    	}
    
    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/os_dragonfly.go

    	// TODO: Check for error.
    	retryOnEAGAIN(func() int32 {
    		lwp_create(&params)
    		return 0
    	})
    	sigprocmask(_SIG_SETMASK, &oset, nil)
    }
    
    func osinit() {
    	ncpu = getncpu()
    	if physPageSize == 0 {
    		physPageSize = getPageSize()
    	}
    }
    
    var urandom_dev = []byte("/dev/urandom\x00")
    
    //go:nosplit
    func readRandom(r []byte) int {
    	fd := open(&urandom_dev[0], 0 /* O_RDONLY */, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  5. src/runtime/os_netbsd.go

    //
    //go:nosplit
    func netbsdMstart0() {
    	st := stackt{ss_flags: _SS_DISABLE}
    	sigaltstack(&st, nil)
    	mstart0()
    }
    
    func osinit() {
    	ncpu = getncpu()
    	if physPageSize == 0 {
    		physPageSize = getPageSize()
    	}
    	needSysmonWorkaround = getOSRev() < 902000000 // NetBSD 9.2
    }
    
    var urandom_dev = []byte("/dev/urandom\x00")
    
    //go:nosplit
    func readRandom(r []byte) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. src/runtime/malloc.go

    	}
    
    	// Check physPageSize.
    	if physPageSize == 0 {
    		// The OS init code failed to fetch the physical page size.
    		throw("failed to get system page size")
    	}
    	if physPageSize > maxPhysPageSize {
    		print("system page size (", physPageSize, ") is larger than maximum page size (", maxPhysPageSize, ")\n")
    		throw("bad system page size")
    	}
    	if physPageSize < minPhysPageSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  7. src/runtime/os_wasm.go

    package runtime
    
    import (
    	"internal/runtime/atomic"
    	"unsafe"
    )
    
    func osinit() {
    	// https://webassembly.github.io/spec/core/exec/runtime.html#memory-instances
    	physPageSize = 64 * 1024
    	initBloc()
    	ncpu = 1
    	getg().m.procid = 2
    }
    
    const _SIGSEGV = 0xb
    
    func sigpanic() {
    	gp := getg()
    	if !canpanic() {
    		throw("unexpected signal during runtime execution")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. src/runtime/os_darwin.go

    		// mlock the signal stack to work around a kernel bug where it may
    		// SIGILL when the signal stack is not faulted in while a signal
    		// arrives. See issue 42774.
    		mlock(unsafe.Pointer(mp.gsignal.stack.hi-physPageSize), physPageSize)
    	}
    }
    
    // Called to initialize a new m (including the bootstrap m).
    // Called on the new thread, cannot allocate memory.
    func minit() {
    	// iOS does not support alternate signal stack.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  9. src/runtime/mgcscavenge.go

    	gcPercentGoal = (gcPercentGoal + uint64(physPageSize) - 1) &^ (uint64(physPageSize) - 1)
    
    	// Represents where we are now in the heap's contribution to RSS in bytes.
    	//
    	// Guaranteed to always be a multiple of physPageSize on systems where
    	// physPageSize <= pageSize since we map new heap memory at a size larger than
    	// any physPageSize and released memory in multiples of the physPageSize.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  10. src/runtime/os_freebsd.go

    // None of the Go runtime is initialized.
    //
    //go:nosplit
    //go:nowritebarrierrec
    func libpreinit() {
    	initsig(true)
    }
    
    func osinit() {
    	ncpu = getncpu()
    	if physPageSize == 0 {
    		physPageSize = getPageSize()
    	}
    }
    
    var urandom_dev = []byte("/dev/urandom\x00")
    
    //go:nosplit
    func readRandom(r []byte) int {
    	fd := open(&urandom_dev[0], 0 /* O_RDONLY */, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top