- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 2,845 for pointerT (0.19 sec)
-
src/runtime/map_fast32.go
} // Only clear key if there are pointers in it. // This can only happen if pointers are 32 bit // wide as 64 bit pointers do not fit into a 32 bit key. if goarch.PtrSize == 4 && t.Key.Pointers() { // The key must be a pointer as we checked pointers are // 32 bits wide and the key is 32 bits wide also. *(*unsafe.Pointer)(k) = nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.9K bytes - Viewed (0) -
src/runtime/mbarrier.go
// pointer (because it doesn't know it's not a heap pointer). // // // Global writes: // // The Go garbage collector requires write barriers when heap pointers // are stored in globals. Many garbage collectors ignore writes to // globals and instead pick up global -> heap pointers during // termination. This increases pause time, so we instead rely on write
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 15.7K bytes - Viewed (0) -
src/runtime/os_wasip1.go
//go:noescape func poll_oneoff(in, out unsafe.Pointer, nsubscriptions size, nevents unsafe.Pointer) errno func write1(fd uintptr, p unsafe.Pointer, n int32) int32 { iov := iovec{ buf: uintptr32(uintptr(p)), bufLen: size(n), } var nwritten size if fd_write(int32(fd), unsafe.Pointer(&iov), 1, unsafe.Pointer(&nwritten)) != 0 { throw("fd_write failed") } return int32(nwritten) } func usleep(usec uint32) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 7K bytes - Viewed (0) -
src/runtime/map_fast64.go
} // Only clear key if there are pointers in it. if t.Key.Pointers() { if goarch.PtrSize == 8 { *(*unsafe.Pointer)(k) = nil } else { // There are three ways to squeeze at one or more 32 bit pointers into 64 bits. // Just call memclrHasPointers instead of trying to handle all cases here. memclrHasPointers(k, 8) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 14.1K bytes - Viewed (0) -
src/internal/weak/pointer_test.go
st := wt[i].Strong() if st != bt[i] { t.Fatalf("weak pointer is not the same as strong pointer: %p vs. %p", st, bt[i]) } if wp := weak.Make(st); wp != wt[i] { t.Fatalf("new weak pointer not equal to existing weak pointer: %v vs. %v", wp, wt[i]) } if i == 0 { continue } if wt[i] == wt[i-1] { t.Fatalf("expected weak pointers to not be equal to each other, but got %v", wt[i]) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 21:25:11 UTC 2024 - 3.1K bytes - Viewed (0) -
src/runtime/stubs.go
// //go:linkname noescape //go:nosplit func noescape(p unsafe.Pointer) unsafe.Pointer { x := uintptr(p) return unsafe.Pointer(x ^ 0) } // noEscapePtr hides a pointer from escape analysis. See noescape. // USE CAREFULLY! // //go:nosplit func noEscapePtr[T any](p *T) *T { x := uintptr(unsafe.Pointer(p)) return (*T)(unsafe.Pointer(x ^ 0)) } // Not all cgocallback frames are actually cgocallback,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 20.2K bytes - Viewed (0) -
test/fixedbugs/issue8606b.go
} err = syscall.Mprotect(b, syscall.PROT_NONE) if err != nil { panic(err) } // write inaccessible pointers as the data fields of bad1 and bad2. (*reflect.StringHeader)(unsafe.Pointer(&bad1)).Data = uintptr(unsafe.Pointer(&b[0])) (*reflect.StringHeader)(unsafe.Pointer(&bad2)).Data = uintptr(unsafe.Pointer(&b[1])) for _, test := range []struct { a, b interface{} }{ {SI{s: bad1, i: 1}, SI{s: bad2, i: 2}},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.9K bytes - Viewed (0) -
src/runtime/cgocheck.go
break } v := *(*unsafe.Pointer)(unsafe.Pointer(addr)) if cgoIsGoPointer(v) && !isPinned(v) { throw(cgoWriteBarrierFail) } } } // cgoCheckBits checks the block of memory at src, for up to size // bytes, and throws if it finds an unpinned Go pointer. The gcbits mark each // pointer value. The src pointer is off bytes into the gcbits. // //go:nosplit //go:nowritebarrier
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 7.6K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/yaml.go
// we use reflect.Indirect here in order to obtain the actual value from a pointer. // we need an actual value in order to retrieve the package path for an object. // using reflect.Indirect indiscriminately is valid here, as all runtime.Objects are supposed to be pointers. if InternalObjectPreventer.IsForbidden(reflect.Indirect(reflect.ValueOf(obj)).Type().PkgPath()) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 02 14:15:25 UTC 2022 - 2.5K bytes - Viewed (0) -
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)