- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for panicmem (0.12 sec)
-
src/runtime/os_wasm.go
const _SIGSEGV = 0xb func sigpanic() { gp := getg() if !canpanic() { throw("unexpected signal during runtime execution") } // js only invokes the exception handler for memory faults. gp.sig = _SIGSEGV panicmem() } // func exitThread(wait *uint32) // FIXME: wasm doesn't have atomic yet func exitThread(wait *atomic.Uint32) type mOS struct{} func osyield() //go:nosplit func osyield_no_g() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 3.2K bytes - Viewed (0) -
src/runtime/runtime-seh_windows_test.go
got := make([]string, 0, len(want)) for _, pc := range pcs { fn := runtime.FuncForPC(pc) if fn == nil || len(got) >= len(want) { break } name := fn.Name() switch name { case "runtime.panicmem": // These functions are skipped as they appear inconsistently depending // whether inlining is on or off. continue } got = append(got, name) } if !slices.Equal(want, got) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 31 16:52:06 UTC 2023 - 4.7K bytes - Viewed (0) -
src/runtime/cgo/gcc_signal_ios_arm64.c
#else thread_state.ts_32.__r[1] = thread_state.ts_32.__lr; thread_state.ts_32.__r[2] = thread_state.ts_32.__pc; thread_state.ts_32.__pc = x_cgo_panicmem; #endif if (0) { // Useful debugging logic when panicmem is broken. // // Sends the first SIGSEGV and lets lldb catch the // second one, avoiding a loop that locks up iOS // devices requiring a hard reboot. fprintf(stderr, "runtime/cgo: caught exc_bad_access\n");
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 21:04:22 UTC 2024 - 6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/routine_test.go
) func TestPropogatingPanic(t *testing.T) { var buf bytes.Buffer klog.SetOutput(&buf) klog.LogToStderr(false) defer klog.LogToStderr(true) panicMsg := "panic as designed" handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { panic(panicMsg) }) resolver := &request.RequestInfoFactory{ APIPrefixes: sets.NewString("api", "apis"), GrouplessAPIPrefixes: sets.NewString("api"), }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 10:22:16 UTC 2024 - 2.2K bytes - Viewed (0) -
src/internal/abi/rangefuncconsts.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:04:30 UTC 2024 - 940 bytes - Viewed (0) -
src/testing/example.go
// recovered is the result of invoking recover after running the test, in case it panicked. // // If stdout doesn't match the expected output or if recovered is non-nil, it'll print the cause of failure to stdout. // If the test is chatty/verbose, it'll print a success message to stdout. // If recovered is non-nil, it'll panic with that value. // If the test panicked with nil, or invoked runtime.Goexit, it'll be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.8K bytes - Viewed (0) -
src/sync/oncefunc_test.go
// underlying function is only called once. for _, label := range []string{"first time", "second time"} { var p any panicked := true func() { defer func() { p = recover() }() f() panicked = false }() if !panicked { t.Fatalf("%s: f did not panic", label) } check(label, p) } if *calls != 1 { t.Errorf("want calls==1, got %d", *calls) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:31:33 UTC 2023 - 6.9K bytes - Viewed (0) -
test/fixedbugs/issue14636.go
if err == nil { log.Fatalf("expected cmd/link to fail") } firstLine := string(bytes.SplitN(out, []byte("\n"), 2)[0]) if strings.HasPrefix(firstLine, "panic") { log.Fatalf("cmd/link panicked:\n%s", out) } if !strings.Contains(firstLine, message) { log.Fatalf("cmd/link output did not include expected message %q: %s", message, firstLine) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.2K bytes - Viewed (0) -
src/net/protoconn_test.go
} if f, err := c.File(); err != nil { condFatalf(t, "file+net", "%v", err) } else { f.Close() } defer func() { if p := recover(); p != nil { t.Fatalf("panicked: %v", p) } }() c.WriteToUDP(wb, nil) c.WriteMsgUDP(wb, nil, nil) } func TestIPConnSpecificMethods(t *testing.T) { if !testableNetwork("ip4") { t.Skip("skipping: ip4 not supported")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 7.4K bytes - Viewed (0) -
src/sync/pool_test.go
var p *Pool t.Run("Get", func(t *testing.T) { defer catch() if p.Get() != nil { t.Error("expected empty") } t.Error("should have panicked already") }) t.Run("Put", func(t *testing.T) { defer catch() p.Put("a") t.Error("should have panicked already") }) } func BenchmarkPool(b *testing.B) { var p Pool b.RunParallel(func(pb *testing.PB) { for pb.Next() { p.Put(1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8K bytes - Viewed (0)