- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for panicmem (0.15 sec)
-
src/runtime/os_plan9.go
i := indexNoFloat(note, "addr=") if i >= 0 { i += 5 } else if i = indexNoFloat(note, "va="); i >= 0 { i += 3 } else { panicmem() } addr := note[i:] gp.sigcode1 = uintptr(atolwhex(addr)) if gp.sigcode1 < 0x1000 { panicmem() } if gp.paniconfault { panicmemAddr(gp.sigcode1) } if inUserArenaChunk(gp.sigcode1) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 10.3K bytes - Viewed (0) -
src/runtime/signal_unix.go
panicmem() } // Support runtime/debug.SetPanicOnFault. if gp.paniconfault { panicmemAddr(gp.sigcode1) } print("unexpected fault address ", hex(gp.sigcode1), "\n") throw("fault") case _SIGSEGV: if (gp.sigcode0 == 0 || gp.sigcode0 == _SEGV_MAPERR || gp.sigcode0 == _SEGV_ACCERR) && gp.sigcode1 < 0x1000 { panicmem() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 16:04:54 UTC 2024 - 45K bytes - Viewed (0) -
src/runtime/panic.go
// code generated by the compiler for out of bounds index expressions, // out of bounds slice expressions, division by zero, and shift by negative. // The panicdivide (again), panicoverflow, panicfloat, and panicmem // functions are called by the signal handler when a signal occurs // indicating the respective problem. // // Since panic{Index,Slice,shift} are never called directly, and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 43.8K bytes - Viewed (0) -
src/iter/pull_test.go
func TestPullPanic(t *testing.T) { t.Run("next", func(t *testing.T) { next, stop := Pull(panicSeq()) if !panicsWith("boom", func() { next() }) { t.Fatal("failed to propagate panic on first next") } // Make sure we don't panic again if we try to call next or stop. if _, ok := next(); ok { t.Fatal("next returned true after iterator panicked") } // Calling stop again should be a no-op. stop() })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 10.2K bytes - Viewed (0) -
src/encoding/binary/binary_test.go
} } } func testUint64SmallSliceLengthPanics() (panicked bool) { defer func() { panicked = recover() != nil }() b := [8]byte{1, 2, 3, 4, 5, 6, 7, 8} LittleEndian.Uint64(b[:4]) return false } func testPutUint64SmallSliceLengthPanics() (panicked bool) { defer func() { panicked = recover() != nil }() b := [8]byte{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:16:18 UTC 2024 - 25.4K bytes - Viewed (0) -
src/time/tick_test.go
if err := recover(); err == nil { t.Errorf("NewTicker(-1) should have panicked") } }() NewTicker(-1) } // Test that Ticker.Reset panics when given a duration less than zero. func TestTickerResetLtZeroDuration(t *testing.T) { defer func() { if err := recover(); err == nil { t.Errorf("Ticker.Reset(0) should have panicked") } }() tk := NewTicker(Second) tk.Reset(0) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:10:37 UTC 2024 - 14.7K bytes - Viewed (0) -
src/testing/fuzz.go
} // Before resetting the current coverage, defer the snapshot so that // we make sure it is called right before the tRunner function // exits, regardless of whether it was executed cleanly, panicked, // or if the fuzzFn called t.Fatal. if f.testContext.isFuzzing { defer f.fuzzContext.deps.SnapshotCoverage() f.fuzzContext.deps.ResetCoverage() } fn.Call(args) }) <-t.signal
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 22.9K bytes - Viewed (0) -
cni/pkg/plugin/plugin.go
// Defer a panic recover, so that in case if panic we can still return // a proper error to the runtime. defer func() { if e := recover(); e != nil { msg := fmt.Sprintf("istio-cni panicked during cmdAdd: %v\n%v", e, string(debug.Stack())) if err != nil { // If we're recovering and there was also an error, then we need to // present both. msg = fmt.Sprintf("%s: %v", msg, err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 16:26:35 UTC 2024 - 10.7K bytes - Viewed (0) -
src/log/slog/value.go
// Resolve's return value is guaranteed not to be of Kind [KindLogValuer]. func (v Value) Resolve() (rv Value) { orig := v defer func() { if r := recover(); r != nil { rv = AnyValue(fmt.Errorf("LogValue panicked\n%s", stack(3, 5))) } }() for i := 0; i < maxLogValues; i++ { if v.Kind() != KindLogValuer { return v } v = v.LogValuer().LogValue() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:12:08 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/test.go
return f; } void init() { SansTypeface = loadfont(); } // issue 5242 // Cgo incorrectly computed the alignment of structs // with no Go accessible fields as 0, and then panicked on // modulo-by-zero computations. // issue 50987 // disable arm64 GCC warnings #cgo CFLAGS: -Wno-psabi -Wno-unknown-warning-option typedef struct { } foo; typedef struct { int x : 1;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0)