- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,056 for mypanic (0.14 sec)
-
src/cmd/go/internal/script/conds.go
ready = make(chan struct{}) v, loaded = c.m.LoadOrStore(suffix, (<-chan struct{})(ready)) if !loaded { inPanic := true defer func() { if inPanic { c.m.Delete(suffix) } close(ready) }() b, err := c.eval(suffix) inPanic = false if err == nil { c.m.Store(suffix, b) return b, nil } else { c.m.Store(suffix, err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 5K bytes - Viewed (0) -
test/typeparam/pairimp.dir/main.go
panic(fmt.Sprintf("unexpected f1 size == %d, want %d", got, want)) } if got, want := unsafe.Sizeof(p.Field2), uintptr(8); got != want { panic(fmt.Sprintf("unexpected f2 size == %d, want %d", got, want)) } type mypair struct { Field1 int32 Field2 int64 } mp := mypair(p) if mp.Field1 != 1 || mp.Field2 != 2 { panic(fmt.Sprintf("mp == %#v, want %#v", mp, mypair{1, 2})) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 716 bytes - Viewed (0) -
test/typeparam/pair.go
if got, want := unsafe.Sizeof(p.f1), uintptr(4); got != want { panic(fmt.Sprintf("unexpected f1 size == %d, want %d", got, want)) } if got, want := unsafe.Sizeof(p.f2), uintptr(8); got != want { panic(fmt.Sprintf("unexpected f2 size == %d, want %d", got, want)) } type mypair struct { f1 int32 f2 int64 } mp := mypair(p) if mp.f1 != 1 || mp.f2 != 2 { panic(fmt.Sprintf("mp == %#v, want %#v", mp, mypair{1, 2})) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 739 bytes - Viewed (0) -
src/debug/gosym/symtab_test.go
pkgName string }{ {Sym{goVersion: ver120, Name: "type:.eq.[9]debug/elf.intName"}, ""}, {Sym{goVersion: ver120, Name: "type:.hash.debug/elf.ProgHeader"}, ""}, {Sym{goVersion: ver120, Name: "type:.eq.runtime._panic"}, ""}, {Sym{goVersion: ver120, Name: "type:.hash.struct { runtime.gList; runtime.n int32 }"}, ""}, {Sym{goVersion: ver120, Name: "go:(*struct { sync.Mutex; math/big.table [64]math/big"}, ""},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 09 11:28:56 UTC 2022 - 4.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/universe.go
// To disable max/min, remove the next two lines. _Max: {"max", 1, true, expression}, _Min: {"min", 1, true, expression}, _New: {"new", 1, false, expression}, _Panic: {"panic", 1, false, statement}, _Print: {"print", 0, true, statement}, _Println: {"println", 0, true, statement}, _Real: {"real", 1, false, expression}, _Recover: {"recover", 0, false, statement},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.1K bytes - Viewed (0) -
src/go/types/universe.go
// To disable max/min, remove the next two lines. _Max: {"max", 1, true, expression}, _Min: {"min", 1, true, expression}, _New: {"new", 1, false, expression}, _Panic: {"panic", 1, false, statement}, _Print: {"print", 0, true, statement}, _Println: {"println", 0, true, statement}, _Real: {"real", 1, false, expression}, _Recover: {"recover", 0, false, statement},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/return.go
switch s := s.(type) { default: panic("unreachable") case *syntax.DeclStmt, *syntax.EmptyStmt, *syntax.SendStmt, *syntax.AssignStmt, *syntax.CallStmt: // no chance case *syntax.LabeledStmt: return check.isTerminating(s.Stmt, s.Label.Value) case *syntax.ExprStmt: // calling the predeclared (possibly parenthesized) panic() function is terminating
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.4K bytes - Viewed (0) -
src/go/types/return.go
switch s := s.(type) { default: panic("unreachable") case *ast.BadStmt, *ast.DeclStmt, *ast.EmptyStmt, *ast.SendStmt, *ast.IncDecStmt, *ast.AssignStmt, *ast.GoStmt, *ast.DeferStmt, *ast.RangeStmt: // no chance case *ast.LabeledStmt: return check.isTerminating(s.Stmt, s.Label.Name) case *ast.ExprStmt: // calling the predeclared (possibly parenthesized) panic() function is terminating
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.2K bytes - Viewed (0) -
src/cmd/internal/goobj/builtinlist.go
{"runtime.mallocgc", 1}, {"runtime.panicdivide", 1}, {"runtime.panicshift", 1}, {"runtime.panicmakeslicelen", 1}, {"runtime.panicmakeslicecap", 1}, {"runtime.throwinit", 1}, {"runtime.panicwrap", 1}, {"runtime.gopanic", 1}, {"runtime.gorecover", 1}, {"runtime.goschedguarded", 1}, {"runtime.goPanicIndex", 1}, {"runtime.goPanicIndexU", 1}, {"runtime.goPanicSliceAlen", 1}, {"runtime.goPanicSliceAlenU", 1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 7.4K bytes - Viewed (0) -
src/runtime/traceback_system_test.go
if err != nil { t.Fatal(err) } // Unwind the stack using this executable's symbol table. got := formatStack(pcs) want := `redacted.go:0: runtime.gopanic traceback_system_test.go:85: runtime_test.child7: panic("oops") traceback_system_test.go:68: runtime_test.child6: child7() // appears in stack trace traceback_system_test.go:59: runtime_test.child5: child6() // appears in stack trace
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 15:19:04 UTC 2024 - 7.4K bytes - Viewed (0)