- Sort Score
- Result 10 results
- Languages All
Results 11 - 13 of 13 for findObject (0.14 sec)
-
src/runtime/cgocall.go
// The return values are unused but useful to see in panic tracebacks. func cgoCheckUnknownPointer(p unsafe.Pointer, msg string) (base, i uintptr) { if inheap(uintptr(p)) { b, span, _ := findObject(uintptr(p), 0, 0) base = b if base == 0 { return } tp := span.typePointersOfUnchecked(base) for { var addr uintptr if tp, addr = tp.next(base + span.elemsize); addr == 0 {
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/runtime/mgc.go
// //go:nosplit func gcTestPointerClass(p unsafe.Pointer) string { p2 := uintptr(noescape(p)) gp := getg() if gp.stack.lo <= p2 && p2 < gp.stack.hi { return "stack" } if base, _, _ := findObject(p2, 0, 0); base != 0 { return "heap" } for _, datap := range activeModules() { if datap.data <= p2 && p2 < datap.edata || datap.noptrdata <= p2 && p2 < datap.enoptrdata { return "data" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62K bytes - Viewed (0) -
src/runtime/mheap.go
// GC-related invariants as markrootSpans in any // situation where it's possible that markrootSpans // has already run but mark termination hasn't yet. if gcphase != _GCoff { base, span, _ := findObject(uintptr(p), 0, 0) mp := acquirem() gcw := &mp.p.ptr().gcw // Mark everything reachable from the object // so it's retained for the finalizer. if !span.spanclass.noscan() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 78K bytes - Viewed (0)