- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for pcsz (0.03 sec)
-
src/debug/plan9obj/file_test.go
{"syms", 0x2c2b, 0x55cb}, {"spsz", 0x0, 0x81f6}, {"pcsz", 0xf7a, 0x81f6}, }, }, { "testdata/amd64-plan9-exec", FileHeader{MagicAMD64, 0x618, 0x13, 8, 0x200000, 40}, []*SectionHeader{ {"text", 0x4213, 0x28}, {"data", 0xa80, 0x423b}, {"syms", 0x2c8c, 0x4cbb}, {"spsz", 0x0, 0x7947}, {"pcsz", 0xca0, 0x7947}, }, }, } func TestOpen(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:34:33 UTC 2016 - 1.7K bytes - Viewed (0) -
src/debug/plan9obj/plan9obj.go
Data uint32 /* size of initialized data */ Bss uint32 /* size of uninitialized data */ Syms uint32 /* size of symbol table */ Entry uint32 /* entry point */ Spsz uint32 /* size of pc/sp offset table */ Pcsz uint32 /* size of pc/line number table */ } // Plan 9 symbol table entries. type sym struct { value uint64 typ byte name []byte } const ( Magic64 = 0x8000 // 64-bit expanded header
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:34:33 UTC 2016 - 863 bytes - Viewed (0) -
src/debug/plan9obj/file.go
f.HdrSize += 8 } var sects = []struct { name string size uint32 }{ {"text", ph.Text}, {"data", ph.Data}, {"syms", ph.Syms}, {"spsz", ph.Spsz}, {"pcsz", ph.Pcsz}, } f.Sections = make([]*Section, 5) off := uint32(f.HdrSize) for i, sect := range sects { s := new(Section) s.SectionHeader = SectionHeader{ Name: sect.name,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 7.2K bytes - Viewed (0) -
test/fixedbugs/issue19799.go
import ( "os" "runtime" ) func foo(x int) int { return x + 1 } func test() { defer func() { if r := recover(); r != nil { pcs := make([]uintptr, 10) n := runtime.Callers(0, pcs) pcs = pcs[:n] frames := runtime.CallersFrames(pcs) for { f, more := frames.Next() if f.Function == "main.foo" { println("did not expect to see call to foo in stack trace") os.Exit(1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 02 13:41:01 UTC 2017 - 1.1K bytes - Viewed (0) -
src/runtime/runtime-seh_windows_test.go
return sehf4(pan) } //go:noinline func sehf4(pan bool) []uintptr { var pcs []uintptr if pan { panic("sehf4") } pcs = sehCallers() return pcs } func testSehCallersEqual(t *testing.T, pcs []uintptr, want []string) { t.Helper() got := make([]string, 0, len(want)) for _, pc := range pcs { fn := runtime.FuncForPC(pc) if fn == nil || len(got) >= len(want) { break }
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/cmd/vendor/golang.org/x/telemetry/internal/counter/stackcounter.go
// creating it if necessary. func (c *StackCounter) Inc() { pcs := make([]uintptr, c.depth) n := runtime.Callers(2, pcs) // caller of Inc pcs = pcs[:n] c.mu.Lock() defer c.mu.Unlock() // Existing counter? var ctr *Counter for _, s := range c.stacks { if eq(s.pcs, pcs) { if s.counter != nil { ctr = s.counter break } } } if ctr == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:10:54 UTC 2024 - 4.8K bytes - Viewed (0) -
test/fixedbugs/issue34123.go
var x byte var p *byte //go:noinline func f() { q := p x = 11 // line 23 *q = 12 // line 24 } func main() { defer func() { recover() var pcs [10]uintptr n := runtime.Callers(1, pcs[:]) frames := runtime.CallersFrames(pcs[:n]) for { f, more := frames.Next() if f.Function == "main.f" && f.Line != 24 { panic(fmt.Errorf("expected line 24, got line %d", f.Line)) } if !more {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 08 21:05:17 UTC 2019 - 735 bytes - Viewed (0) -
src/internal/pkgbits/sync.go
// walkFrames calls visit for each call frame represented by pcs. // // pcs should be a slice of PCs, as returned by runtime.Callers. func walkFrames(pcs []uintptr, visit frameVisitor) { if len(pcs) == 0 { return } frames := runtime.CallersFrames(pcs) for { frame, more := frames.Next() visit(frame.File, frame.Line, frame.Function, frame.PC-frame.Entry)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 04 17:12:28 UTC 2022 - 2.4K bytes - Viewed (0) -
src/runtime/example_test.go
package runtime_test import ( "fmt" "runtime" "strings" ) func ExampleFrames() { c := func() { // Ask runtime.Callers for up to 10 PCs, including runtime.Callers itself. pc := make([]uintptr, 10) n := runtime.Callers(0, pc) if n == 0 { // No PCs available. This can happen if the first argument to // runtime.Callers is large. // // Return now to avoid processing the zero Frame that would
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 18 22:05:09 UTC 2021 - 1.5K bytes - Viewed (0) -
src/runtime/traceback_system_test.go
//go:noinline func child7bad() { } //go:noinline func child7() { // Write runtime.Caller's view of the stack to stderr, for debugging. var pcs [16]uintptr n := runtime.Callers(1, pcs[:]) fmt.Fprintf(os.Stderr, "Callers: %#x\n", pcs[:n]) io.WriteString(os.Stderr, formatStack(pcs[:n])) // Cause the crash report to be written to stdout. panic("oops") } // TestTracebackSystem tests that the syntax of crash reports produced
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 15:19:04 UTC 2024 - 7.4K bytes - Viewed (0)