- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for stkalloc (0.12 sec)
-
src/runtime/mpagealloc_32bit.go
if test { // Set up the scavenge index via sysAlloc so the test can free it later. scavIndexSize := uintptr(len(scavengeIndexArray)) * unsafe.Sizeof(atomicScavChunkData{}) s.chunks = ((*[(1 << heapAddrBits) / pallocChunkBytes]atomicScavChunkData)(sysAlloc(scavIndexSize, sysStat)))[:] mappedReady = scavIndexSize } else { // Set up the scavenge index.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 20 20:08:25 UTC 2023 - 4.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/cache.go
type Cache struct { // Storage for low-numbered values and blocks. values [2000]Value blocks [200]Block locs [2000]Location // Reusable stackAllocState. // See stackalloc.go's {new,put}StackAllocState. stackAllocState *stackAllocState scrPoset []*poset // scratch poset to be reused // Reusable regalloc state. regallocValues []valState ValueToProgAfter []*obj.Prog
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 15 23:00:54 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/cgo/internal/test/sigaltstack.go
// The Darwin C library enforces a minimum that the kernel does not. // This is OK since we allocated this much space in mpreinit, // it was just removed from the buffer by stackalloc. oss.ss_size = MINSIGSTKSZ; #endif if (sigaltstack(&oss, NULL) < 0) { perror("sigaltstack restore"); abort(); } } static int zero(void) { return 0; } */ import "C" import (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 1.7K bytes - Viewed (0) -
src/runtime/cgo_mmap.go
var _cgo_munmap unsafe.Pointer // mmap is used to route the mmap system call through C code when using cgo, to // support sanitizer interceptors. Don't allow stack splits, since this function // (used by sysAlloc) is called in a lot of low-level parts of the runtime and // callers often assume it won't acquire any locks. // //go:nosplit func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (unsafe.Pointer, int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 20:58:13 UTC 2023 - 2.4K bytes - Viewed (0) -
src/runtime/internal/sys/nih.go
// to these types must always fail the `runtime.inheap` check. The type may be used // for global variables, or for objects in unmanaged memory (e.g., allocated with // `sysAlloc`, `persistentalloc`, r`fixalloc`, or from a manually-managed span). // // Specifically: // // 1. `new(T)`, `make([]T)`, `append([]T, ...)` and implicit heap // allocation of T are disallowed. (Though implicit allocations are
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 18:24:50 UTC 2022 - 1.7K bytes - Viewed (0) -
src/runtime/mem.go
// OS-specific implementations that handle errors, while the interface boundary // implements cross-OS functionality, like updating runtime accounting. // sysAlloc transitions an OS-chosen region of memory from None to Ready. // More specifically, it obtains a large chunk of zeroed memory from the // operating system, typically on the order of a hundred kilobytes
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:05:10 UTC 2023 - 6.7K bytes - Viewed (0) -
src/runtime/mfixalloc.go
// // See malloc.go for overview. package runtime import ( "runtime/internal/sys" "unsafe" ) // fixalloc is a simple free-list allocator for fixed size objects. // Malloc uses a FixAlloc wrapped around sysAlloc to manage its // mcache and mspan objects. // // Memory returned by fixalloc.alloc is zeroed by default, but the // caller may take responsibility for zeroing allocations by setting
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 24 20:28:25 UTC 2023 - 3.1K bytes - Viewed (0) -
src/runtime/traceregion.go
} // Add the existing block to the full list. block.next = a.full a.full = block } // Allocate a new block. block = (*traceRegionAllocBlock)(sysAlloc(unsafe.Sizeof(traceRegionAllocBlock{}), &memstats.other_sys)) if block == nil { throw("traceRegion: out of memory") } // Allocate space for our current request, so we always make // progress.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 3.2K bytes - Viewed (0) -
test/fibo.go
} } func doBench(half, opt bool) { w := tabwriter.NewWriter(os.Stdout, 0, 8, 2, ' ', tabwriter.AlignRight) fmt.Fprintf(w, "wordsize = %d, half = %v, opt = %v\n", W, half, opt) fmt.Fprintf(w, "n\talloc count\talloc bytes\tns/op\ttime/op\t\n") for n := 1; n <= 1e6; n *= 10 { res := testing.Benchmark(func(b *testing.B) { benchFibo(b, n, half, opt) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 08 22:22:58 UTC 2014 - 6.3K bytes - Viewed (0) -
src/runtime/sys_openbsd2.go
} func thrkill_trampoline() // mmap is used to do low-level memory allocation via mmap. Don't allow stack // splits, since this function (used by sysAlloc) is called in a lot of low-level // parts of the runtime and callers often assume it won't acquire any locks. // //go:nosplit func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (unsafe.Pointer, int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.7K bytes - Viewed (0)