- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 31 for physPageSize (0.27 sec)
-
src/runtime/os_openbsd.go
systemstack(func() { print("thrwakeup addr=", &mp.waitsemacount, " sem=", mp.waitsemacount, " ret=", ret, "\n") }) } } func osinit() { ncpu = getncpu() 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: Mon Mar 25 19:53:03 UTC 2024 - 6.2K bytes - Viewed (0) -
src/runtime/mpagecache_test.go
// This test is similar to the one with the same name for // pageAlloc.alloc and serves the same purpose. // See mpagealloc_test.go for details. sumsPerPhysPage := ChunkIdx(PhysPageSize / PallocSumBytes) baseChunkIdx := BaseChunkIdx &^ (sumsPerPhysPage - 1) tests["DiscontiguousMappedSumBoundary"] = test{ beforeAlloc: map[ChunkIdx][]BitRange{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 06 19:16:48 UTC 2021 - 10.8K bytes - Viewed (0) -
src/runtime/mheap.go
// least ask bytes in size. nBase = alignUp(h.curArena.base+ask, physPageSize) } // Grow into the current arena. v := h.curArena.base h.curArena.base = nBase // Transition the space we're going to use from Reserved to Prepared. // // The allocation is always aligned to the heap arena // size which is always > physPageSize, so its safe to // just add directly to heapReleased.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 78K bytes - Viewed (0) -
src/runtime/signal_unix.go
// We're assuming here we can read at least the page containing the PC. // I suppose it is possible that the page is mapped executable but not readable? pc := c.sigpc() if n > physPageSize-pc%physPageSize { n = physPageSize - pc%physPageSize } print("instruction bytes:") b := (*[maxN]byte)(unsafe.Pointer(pc)) for i := uintptr(0); i < n; i++ { print(" ", hex(b[i])) } println() } print("\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 16:04:54 UTC 2024 - 45K bytes - Viewed (0) -
src/runtime/runtime.go
//go:linkname syscall_runtime_envs syscall.runtime_envs func syscall_runtime_envs() []string { return append([]string{}, envs...) } //go:linkname syscall_Getpagesize syscall.Getpagesize func syscall_Getpagesize() int { return int(physPageSize) } //go:linkname os_runtime_args os.runtime_args func os_runtime_args() []string { return append([]string{}, argslice...) } //go:linkname syscall_Exit syscall.Exit //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 9.9K bytes - Viewed (0) -
src/runtime/os_plan9.go
if fd >= 0 { read(fd, unsafe.Pointer(&b), int32(len(b))) closefd(fd) } c := b[:] for c[0] == ' ' || c[0] == '\t' { c = c[1:] } return uint64(_atoi(c)) } func osinit() { physPageSize = getPageSize() initBloc() ncpu = getproccount() getg().m.procid = getpid() } //go:nosplit func crash() { notify(nil) *(*int)(nil) = 0 } //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 10.3K bytes - Viewed (0) -
src/runtime/arena.go
) func init() { if userArenaChunkPages*pageSize != userArenaChunkBytes { throw("user arena chunk size is not a multiple of the page size") } if userArenaChunkBytes%physPageSize != 0 { throw("user arena chunk size is not a multiple of the physical page size") } if userArenaChunkBytes < heapArenaBytes { if heapArenaBytes%userArenaChunkBytes != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:44:56 UTC 2024 - 37.9K bytes - Viewed (0) -
src/runtime/mpagealloc_test.go
// to a physical page in the chunk summary array. Here we only assume that // each summary array is aligned to some physical page. sumsPerPhysPage := ChunkIdx(PhysPageSize / PallocSumBytes) baseChunkIdx := BaseChunkIdx &^ (sumsPerPhysPage - 1) tests["DiscontiguousMappedSumBoundary"] = test{ before: map[ChunkIdx][]BitRange{ baseChunkIdx + sumsPerPhysPage - 1: {},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 06 19:16:48 UTC 2021 - 32.6K bytes - Viewed (0) -
src/runtime/os_windows.go
preventErrorDialogs() initExceptionHandler() initHighResTimer() timeBeginPeriodRetValue = osRelax(false) initSysDirectory() initLongPathSupport() ncpu = getproccount() physPageSize = getPageSize() // Windows dynamic priority boosting assumes that a process has different types // of dedicated threads -- GUI, IO, computational, etc. Go processes use
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 41.5K bytes - Viewed (0) -
src/runtime/mpagealloc.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Page allocator. // // The page allocator manages mapped pages (defined by pageSize, NOT // physPageSize) for allocation and re-use. It is embedded into mheap. // // Pages are managed using a bitmap that is sharded into chunks. // In the bitmap, 1 means in-use, and 0 means free. The bitmap spans the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 39.2K bytes - Viewed (0)