- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for panicmem (0.19 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/cmd/go/testdata/script/work_empty_panic_GOPATH.txt
# Regression test for https://go.dev/issue/58767: # with an empty go.work file in GOPATH mode, calls to load.defaultGODEBUG for a # package named "main" panicked in modload.MainModules.GoVersion. env GO111MODULE=off cd example go list example/m -- example/go.work -- go 1.21 -- example/m/main.go -- package main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 28 18:50:18 UTC 2023 - 329 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)