Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for physPageSize (1.25 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/runtime/os3_solaris.go

    	// Call miniterrno so that we can safely make system calls
    	// before calling minit on m0.
    	asmcgocall(unsafe.Pointer(abi.FuncPCABI0(miniterrno)), unsafe.Pointer(&libc____errno))
    
    	ncpu = getncpu()
    	if physPageSize == 0 {
    		physPageSize = getPageSize()
    	}
    }
    
    func tstart_sysvicall(newm *m) uint32
    
    // May run with m.p==nil, so write barriers are not allowed.
    //
    //go:nowritebarrier
    func newosproc(mp *m) {
    	var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/runtime/os_linux.go

    			return
    		}
    		var n uintptr
    		for n = 4 << 10; n < size; n <<= 1 {
    			err := mincore(unsafe.Pointer(uintptr(p)+n), 1, &addrspace_vec[0])
    			if err == 0 {
    				physPageSize = n
    				break
    			}
    		}
    		if physPageSize == 0 {
    			physPageSize = size
    		}
    		munmap(p, size)
    		return
    	}
    
    	n = read(fd, noescape(unsafe.Pointer(&auxvreadbuf[0])), int32(unsafe.Sizeof(auxvreadbuf)))
    	closefd(fd)
    	if n < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  6. src/runtime/mgcscavenge_test.go

    	if GOOS == "openbsd" && testing.Short() {
    		t.Skip("skipping because virtual memory is limited; see #36210")
    	}
    	type test struct {
    		request, expect uintptr
    	}
    	minPages := PhysPageSize / PageSize
    	if minPages < 1 {
    		minPages = 1
    	}
    	type setup struct {
    		beforeAlloc map[ChunkIdx][]BitRange
    		beforeScav  map[ChunkIdx][]BitRange
    		expect      []test
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  7. src/runtime/export_test.go

    	if hint.down {
    		start, end = addr-heapArenaBytes, addr
    		addr -= physPageSize
    	} else {
    		start, end = addr, addr+heapArenaBytes
    	}
    	got := sysReserve(unsafe.Pointer(addr), physPageSize)
    	ok = (addr == uintptr(got))
    	if !ok {
    		// We were unable to get the requested reservation.
    		// Release what we did get and fail.
    		sysFreeOS(got, physPageSize)
    	}
    	return
    }
    
    func GetNextArenaHint() uintptr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top