- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for panicmem (0.16 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) -
test/typeparam/issue50002.go
fmt.Printf("ok: got %v, wanted %v", ok, shouldMatch) } if !shouldMatch { defer func() { if shouldMatch { fmt.Printf("Shouldn't have panicked") } recover() }() } _ = x.(A) if !shouldMatch { fmt.Printf("Should have panicked") } } func main() { // Test instantiation where the type switch/type asserts can't possibly succeed // (since string does not implement I[byte]).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.3K 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/cmd/go/testdata/script/list_linkshared.txt
env GO111MODULE=on # golang.org/issue/35759: 'go list -linkshared' # panicked if invoked on a test-only package. [!buildmode:shared] skip go list -f '{{.ImportPath}}: {{.Target}} {{.Shlib}}' -linkshared . stdout '^example.com: $' -- go.mod -- module example.com go 1.14 -- x.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 29 17:32:24 UTC 2021 - 297 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)