- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for physPageSize (0.18 sec)
-
src/runtime/mem_wasm.go
package runtime import "unsafe" func sbrk(n uintptr) unsafe.Pointer { grow := divRoundUp(n, physPageSize) size := growMemory(int32(grow)) if size < 0 { return nil } resetMemoryDataView() return unsafe.Pointer(uintptr(size) * physPageSize) } // Implemented in src/runtime/sys_wasm.s
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 06 17:48:24 UTC 2023 - 488 bytes - Viewed (0) -
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) -
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) -
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) -
src/runtime/os_dragonfly.go
// TODO: Check for error. retryOnEAGAIN(func() int32 { lwp_create(¶ms) 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) -
src/runtime/export_mmap_test.go
var Mmap = mmap var Munmap = munmap const ENOMEM = _ENOMEM const MAP_ANON = _MAP_ANON const MAP_PRIVATE = _MAP_PRIVATE const MAP_FIXED = _MAP_FIXED func GetPhysPageSize() uintptr { return physPageSize
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 429 bytes - Viewed (0) -
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) -
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) -
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) -
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)