- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 3,023 for panics (0.18 sec)
-
src/runtime/signal_arm64.go
func (c *sigctxt) preparePanic(sig uint32, gp *g) { // We arrange lr, and pc to pretend the panicking // function calls sigpanic directly. // Always save LR to stack so that panics in leaf // functions are correctly handled. This smashes // the stack frame but we're not going back there // anyway. sp := c.sp() - sys.StackAlign // needs only sizeof uint64, but must align the stack c.set_sp(sp)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 05 18:16:00 UTC 2023 - 3.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/watch/streamwatcher.go
return sw.result } // Stop implements Interface. func (sw *StreamWatcher) Stop() { // Call Close() exactly once by locking and setting a flag. sw.Lock() defer sw.Unlock() // closing a closed channel always panics, therefore check before closing select { case <-sw.done: default: close(sw.done) sw.source.Close() } } // receive reads result from the decoder in a loop and sends down the result channel.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 06 13:42:59 UTC 2021 - 3.9K bytes - Viewed (0) -
src/slices/iter_test.go
name string x []struct{} n int }{ { name: "cannot be less than 1", x: make([]struct{}, 0), n: 0, }, } { if !panics(func() { _ = Chunk(test.x, test.n) }) { t.Errorf("Chunk %s: got no panic, want panic", test.name) } } } func TestChunkRange(t *testing.T) { // Verify Chunk iteration can be stopped. var got [][]int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 5.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/finisher/finisher.go
func (r *result) Return() (runtime.Object, error) { switch { case r.reason != nil: // panic has higher precedence, the goroutine executing ResultFunc has panic'd, // so propagate a panic to the caller. panic(r.reason) case r.err != nil: return nil, r.err default: // if we are here, it means neither a panic, nor an error if status, ok := r.object.(*metav1.Status); ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 07 14:20:33 UTC 2021 - 6K bytes - Viewed (0) -
src/go/parser/resolver_test.go
if err != nil { t.Fatal(err) } for _, fi := range fis { t.Run(fi.Name(), func(t *testing.T) { fset := token.NewFileSet() path := filepath.Join(dir, fi.Name()) src := readFile(path) // panics on failure var mode Mode file, err := ParseFile(fset, path, src, mode) if err != nil { t.Fatal(err) } // Compare the positions of objects resolved during parsing (fromParser)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 19 17:46:07 UTC 2022 - 4.9K bytes - Viewed (0) -
src/runtime/signal_ppc64x.go
func (c *sigctxt) preparePanic(sig uint32, gp *g) { // We arrange link, and pc to pretend the panicking // function calls sigpanic directly. // Always save LINK to stack so that panics in leaf // functions are correctly handled. This smashes // the stack frame but we're not going back there // anyway. sp := c.sp() - sys.MinFrameSize c.set_sp(sp) *(*uint64)(unsafe.Pointer(uintptr(sp))) = c.link()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 15:08:04 UTC 2023 - 3.7K bytes - Viewed (0) -
src/debug/dwarf/open.go
validation is done when parsing object files. As such, care should be taken when parsing untrusted inputs, as parsing malformed files may consume significant resources, or cause panics. */ package dwarf import ( "encoding/binary" "errors" ) // Data represents the DWARF debugging information // loaded from an executable file (for example, an ELF or Mach-O executable).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 4.1K bytes - Viewed (0) -
src/syscall/wtf8_windows_test.go
} }) } } func FuzzEncodeWTF16(f *testing.F) { for _, tt := range wtf8tests { f.Add(tt.str) } f.Fuzz(func(t *testing.T, b string) { // test that there are no panics got := syscall.EncodeWTF16(b, nil) syscall.DecodeWTF16(got, nil) if utf8.ValidString(b) { // if the input is a valid UTF-8 string, then // test that syscall.EncodeWTF16 behaves as // utf16.Encode
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 15 09:26:16 UTC 2023 - 4.3K bytes - Viewed (0) -
src/debug/gosym/pclntab.go
func (f funcData) cuOffset() uint32 { return f.field(8) } // field returns the nth field of the _func struct. // It panics if n == 0 or n > 9; for n == 0, call f.entryPC. // Most callers should use a named field accessor (just above). func (f funcData) field(n uint32) uint32 { if n == 0 || n > 9 { panic("bad funcdata field") } // In Go 1.18, the first field of _func changed // from a uintptr entry PC to a uint32 entry offset.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 25 19:43:24 UTC 2024 - 18.8K bytes - Viewed (0) -
src/cmd/internal/src/xpos.go
t.nameMap[base.absFilename] = fileIndex } base.fileIndex = fileIndex return int32(i) } // Pos returns the corresponding Pos for the given p. // If p cannot be translated via t, the function panics. func (t *PosTable) Pos(p XPos) Pos { var base *PosBase if p.index != 0 { base = t.baseList[p.index] } return Pos{base, p.lico} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 4.9K bytes - Viewed (0)