- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for nstk (0.06 sec)
-
test/fixedbugs/issue22083.go
return w.a[i] } func main() { defer func() { e := recover() if e == nil { panic("bounds check didn't fail") } stk := string(debug.Stack()) if !strings.Contains(stk, "issue22083.go:40") { panic("wrong stack trace: " + stk) } }() foo := Wrapper{a: []int{0, 1, 2}} _ = foo.Get(0) _ = foo.Get(1) _ = foo.Get(2) _ = foo.Get(3) // stack trace should mention this line
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 03 09:27:37 UTC 2017 - 791 bytes - Viewed (0) -
src/runtime/os_netbsd_386.go
package runtime import ( "internal/abi" "unsafe" ) func lwp_mcontext_init(mc *mcontextt, stk unsafe.Pointer, mp *m, gp *g, fn uintptr) { // Machine dependent mcontext initialisation for LWP. mc.__gregs[_REG_EIP] = uint32(abi.FuncPCABI0(lwp_tramp)) mc.__gregs[_REG_UESP] = uint32(uintptr(stk)) mc.__gregs[_REG_EBX] = uint32(uintptr(unsafe.Pointer(mp))) mc.__gregs[_REG_EDX] = uint32(uintptr(unsafe.Pointer(gp)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 21 22:12:04 UTC 2021 - 617 bytes - Viewed (0) -
src/runtime/os_netbsd_amd64.go
package runtime import ( "internal/abi" "unsafe" ) func lwp_mcontext_init(mc *mcontextt, stk unsafe.Pointer, mp *m, gp *g, fn uintptr) { // Machine dependent mcontext initialisation for LWP. mc.__gregs[_REG_RIP] = uint64(abi.FuncPCABI0(lwp_tramp)) mc.__gregs[_REG_RSP] = uint64(uintptr(stk)) mc.__gregs[_REG_R8] = uint64(uintptr(unsafe.Pointer(mp))) mc.__gregs[_REG_R9] = uint64(uintptr(unsafe.Pointer(gp)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 21 22:12:04 UTC 2021 - 614 bytes - Viewed (0) -
src/runtime/runtime_unix_test.go
for atomic.LoadUint32(&stop) == 0 { syscall.Close(-1) } wg.Done() }() } max := 10000 if testing.Short() { max = 100 } stk := make([]runtime.StackRecord, 128) for n := 0; n < max; n++ { _, ok := runtime.GoroutineProfile(stk) if !ok { t.Fatalf("GoroutineProfile failed") } } // If the program didn't crash, we passed. atomic.StoreUint32(&stop, 1) wg.Wait()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.2K bytes - Viewed (0) -
src/cmd/trace/viewer.go
"time" ) // viewerFrames returns the frames of the stack of ev. The given frame slice is // used to store the frames to reduce allocations. func viewerFrames(stk trace.Stack) []*trace.Frame { var frames []*trace.Frame stk.Frames(func(f trace.StackFrame) bool { frames = append(frames, &trace.Frame{ PC: f.PC, Fn: f.Func, File: f.File, Line: int(f.Line), }) return true })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.4K bytes - Viewed (0) -
src/runtime/os_openbsd_libc.go
func mstart_stub() // May run with m.p==nil, so write barriers are not allowed. // //go:nowritebarrierrec func newosproc(mp *m) { if false { print("newosproc m=", mp, " g=", mp.g0, " id=", mp.id, " ostk=", &mp, "\n") } // Initialize an attribute object. var attr pthreadattr if err := pthread_attr_init(&attr); err != 0 { writeErrStr(failthreadcreate) exit(1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 10 20:44:45 UTC 2022 - 1.5K bytes - Viewed (0) -
src/runtime/os_netbsd_arm.go
package runtime import ( "internal/abi" "unsafe" ) func lwp_mcontext_init(mc *mcontextt, stk unsafe.Pointer, mp *m, gp *g, fn uintptr) { // Machine dependent mcontext initialisation for LWP. mc.__gregs[_REG_R15] = uint32(abi.FuncPCABI0(lwp_tramp)) mc.__gregs[_REG_R13] = uint32(uintptr(stk)) mc.__gregs[_REG_R0] = uint32(uintptr(unsafe.Pointer(mp))) mc.__gregs[_REG_R1] = uint32(uintptr(unsafe.Pointer(gp)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 1.1K bytes - Viewed (0) -
src/runtime/os_netbsd_arm64.go
package runtime import ( "internal/abi" "unsafe" ) func lwp_mcontext_init(mc *mcontextt, stk unsafe.Pointer, mp *m, gp *g, fn uintptr) { // Machine dependent mcontext initialisation for LWP. mc.__gregs[_REG_ELR] = uint64(abi.FuncPCABI0(lwp_tramp)) mc.__gregs[_REG_X31] = uint64(uintptr(stk)) mc.__gregs[_REG_X0] = uint64(uintptr(unsafe.Pointer(mp))) mc.__gregs[_REG_X1] = uint64(uintptr(unsafe.Pointer(mp.g0)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 769 bytes - Viewed (0) -
src/runtime/cpuprof.go
// TODO: Is it safe to osyield here? https://go.dev/issue/52672 osyield() } if cpuprof.numExtra+1+len(stk) < len(cpuprof.extra) { i := cpuprof.numExtra cpuprof.extra[i] = uintptr(1 + len(stk)) copy(cpuprof.extra[i+1:], stk) cpuprof.numExtra += 1 + len(stk) } else { cpuprof.lostExtra++ } prof.signalLock.Store(0) } // addExtra adds the "extra" profiling events,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 8.5K bytes - Viewed (0) -
src/archive/tar/strconv.go
// The size field ends at the first space. nStr, rest, ok := strings.Cut(s, " ") if !ok { return "", "", s, ErrHeader } // Parse the first token as a decimal integer. n, perr := strconv.ParseInt(nStr, 10, 0) // Intentionally parse as native int if perr != nil || n < 5 || n > int64(len(s)) { return "", "", s, ErrHeader } n -= int64(len(nStr) + 1) // convert from index in s to index in rest if n <= 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 01 14:28:42 UTC 2023 - 9K bytes - Viewed (0)