- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 2,845 for pointerT (0.16 sec)
-
test/fixedbugs/issue13160.go
p := runtime.NumCPU() runtime.GOMAXPROCS(2 * p) // Allocate some pointers. ptrs := make([]*int, p) for i := 0; i < p; i++ { ptrs[i] = new(int) } // Arena where we read and write pointers like crazy. collider := make([]*int, p) done := make(chan struct{}, 2*p) // Start writers. They alternately write a pointer // and nil to a slot in the collider. for i := 0; i < p; i++ { i := i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.5K bytes - Viewed (0) -
src/runtime/slice.go
to = mallocgc(tomem, et, true) if copymem > 0 && writeBarrier.enabled { // Only shade the pointers in old.array since we know the destination slice to // only contains nil pointers because it has been cleared during alloc. // // It's safe to pass a type to this function as an optimization because // from and to only ever refer to memory representing whole values of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 12.2K bytes - Viewed (0) -
src/runtime/stack.go
// Adjust pointers in the Defer structs. // We need to do this first because we need to adjust the // defer.link fields so we always work on the new stack. adjustpointer(adjinfo, unsafe.Pointer(&gp._defer)) for d := gp._defer; d != nil; d = d.link { adjustpointer(adjinfo, unsafe.Pointer(&d.fn)) adjustpointer(adjinfo, unsafe.Pointer(&d.sp)) adjustpointer(adjinfo, unsafe.Pointer(&d.link)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 41.1K bytes - Viewed (0) -
src/runtime/cgocall.go
const cgoResultFail = "cgo result is unpinned Go pointer or points to unpinned Go pointer" // cgoCheckArg is the real work of cgoCheckPointer. The argument p // is either a pointer to the value (of type t), or the value itself, // depending on indir. The top parameter is whether we are at the top // level, where Go pointers are allowed. Go pointers to pinned objects are
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 24.2K bytes - Viewed (0) -
src/unsafe/unsafe.go
type IntegerType int // Pointer represents a pointer to an arbitrary type. There are four special operations // available for type Pointer that are not available for other types: // - A pointer value of any type can be converted to a Pointer. // - A Pointer can be converted to a pointer value of any type. // - A uintptr can be converted to a Pointer. // - A Pointer can be converted to a uintptr. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 19:45:20 UTC 2024 - 12.1K bytes - Viewed (0) -
src/crypto/subtle/xor_generic.go
dst = dst[done:] x = x[done:] y = y[done:] } xorLoop(dst, x, y) } // aligned reports whether dst, x, and y are all word-aligned pointers. func aligned(dst, x, y *byte) bool { return (uintptr(unsafe.Pointer(dst))|uintptr(unsafe.Pointer(x))|uintptr(unsafe.Pointer(y)))&(wordSize-1) == 0 } // words returns a []uintptr pointing at the same data as x, // with any trailing partial word removed.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 31 23:25:07 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/cgo/doc.go
or a C pointer. Array and struct types may or may not include Go pointers, depending on the element types. All the discussion below about Go pointers applies not just to pointer types, but also to other types that include Go pointers. All Go pointers passed to C must point to pinned Go memory. Go pointers passed as function arguments to C functions have the memory they point to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 42.2K bytes - Viewed (0) -
src/internal/types/testdata/check/decls3.go
type I2 interface{} type P1 *int type P2 *int type UP unsafe.Pointer type T1 struct { I1 * /* ERROR "cannot be a pointer to an interface" */ I2 * /* ERROR "cannot be a pointer to an interface" */ error P1 /* ERROR "cannot be a pointer" */ * /* ERROR "cannot be a pointer" */ P2 } // unsafe.Pointers are treated like regular pointers when embedded type T2 struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 23:16:04 UTC 2023 - 4.2K bytes - Viewed (0) -
src/runtime/memmove_loong64.s
#include "textflag.h" // See memmove Go doc for important implementation constraints. // func memmove(to, from unsafe.Pointer, n uintptr) TEXT runtime·memmove<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-24 BNE R6, check RET check: SGTU R4, R5, R7 BNE R7, backward ADDV R4, R6, R9 // end pointer // if the two pointers are not of same alignments, do byte copying SUBVU R5, R4, R7 AND $7, R7 BNE R7, out
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 15:04:25 UTC 2024 - 1.8K bytes - Viewed (0) -
src/runtime/memmove_mips64x.s
// func memmove(to, from unsafe.Pointer, n uintptr) TEXT runtime·memmove(SB), NOSPLIT|NOFRAME, $0-24 MOVV to+0(FP), R1 MOVV from+8(FP), R2 MOVV n+16(FP), R3 BNE R3, check RET check: SGTU R1, R2, R4 BNE R4, backward ADDV R1, R3, R6 // end pointer // if the two pointers are not of same alignments, do byte copying SUBVU R2, R1, R4 AND $7, R4
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 06 10:24:44 UTC 2021 - 1.8K bytes - Viewed (0)