Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 81 for PCs (0.02 sec)

  1. test/fixedbugs/issue44344.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue #44344: a crash in DWARF scope generation (trying to
    // scope the PCs of a function that was inlined away).
    
    package main
    
    func main() {
    	pv := []int{3, 4, 5}
    	if pv[1] != 9 {
    		pv = append(pv, 9)
    	}
    	tryit := func() bool {
    		lpv := len(pv)
    		if lpv == 101 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 19 14:46:21 UTC 2021
    - 575 bytes
    - Viewed (0)
  2. test/heapsampling.go

    	a := make(map[int]allocStat)
    	for _, r := range records {
    		var pcs []uintptr
    		for _, s := range r.Stack0 {
    			if s == 0 {
    				break
    			}
    			pcs = append(pcs, s)
    		}
    		frames := runtime.CallersFrames(pcs)
    		line := 0
    		for {
    			frame, more := frames.Next()
    			name := frame.Function
    			if line == 0 {
    				line = frame.Line
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 27 21:36:06 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  3. src/runtime/pprof/proto_test.go

    			}
    
    			if traceback == "Go+C" {
    				// The test code was arranged to have PCs from C and
    				// they are not symbolized.
    				// Check no Location containing those unsymbolized PCs contains multiple lines.
    				for i, loc := range prof.Location {
    					if !symbolized(loc) && len(loc.Line) > 1 {
    						t.Errorf("Location[%d] contains unsymbolized PCs and multiple lines: %v", i, loc)
    					}
    				}
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 23:21:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  4. src/runtime/unsafepoint_test.go

    		if err != nil {
    			t.Fatalf("can't parse pc %s: %v", parts[1], err)
    		}
    		if entry == 0 {
    			entry = pc
    		}
    		// Note that some platforms do ASLR, so the PCs in the disassembly
    		// don't match PCs in the address space. Only offsets from function
    		// entry make sense.
    		unsafe := runtime.UnsafePoint(f.Entry() + uintptr(pc-entry))
    		t.Logf("unsafe: %v\n", unsafe)
    		instructionCount++
    		if unsafe {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 20:24:56 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/eventclock/fake.go

    // of GoRoutineCounter
    var _ counter.GoRoutineCounter = (*waitGroupCounter)(nil)
    
    func (wgc *waitGroupCounter) Add(delta int) {
    	klogV := klog.V(7)
    	if klogV.Enabled() {
    		var pcs [10]uintptr
    		nCallers := runtime.Callers(2, pcs[:])
    		frames := runtime.CallersFrames(pcs[:nCallers])
    		callers := make(stackExcerpt, 0, 10)
    		more := frames != nil
    		boundary := 1
    		for i := 0; more && len(callers) < cap(callers); i++ {
    			var frame runtime.Frame
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  6. src/internal/trace/base.go

    			time: s.time,
    		},
    	}
    	e.base.args[0] = uint64(s.stack)
    	return e
    }
    
    // stack represents a goroutine stack sample.
    type stack struct {
    	pcs []uint64
    }
    
    func (s stack) String() string {
    	var sb strings.Builder
    	for _, frame := range s.pcs {
    		fmt.Fprintf(&sb, "\t%#v\n", frame)
    	}
    	return sb.String()
    }
    
    // frame represents a single stack frame.
    type frame struct {
    	pc     uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. src/runtime/symtab_test.go

    	return pc
    }
    
    // Test that CallersFrames handles PCs in the alignment region between
    // functions (int 3 on amd64) without crashing.
    //
    // Go will never generate a stack trace containing such an address, as it is
    // not a valid call site. However, the cgo traceback function passed to
    // runtime.SetCgoTraceback may not be completely accurate and may incorrect
    // provide PCs in Go code or the alignment region between functions.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 21:46:33 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  8. src/runtime/pprof/protomem_test.go

    	"slices"
    	"strings"
    	"testing"
    )
    
    func TestConvertMemProfile(t *testing.T) {
    	addr1, addr2, map1, map2 := testPCs(t)
    
    	// MemProfileRecord stacks are return PCs, so add one to the
    	// addresses recorded in the "profile". The proto profile
    	// locations are call PCs, so conversion will subtract one
    	// from these and get back to addr1 and addr2.
    	a1, a2 := uintptr(addr1)+1, uintptr(addr2)+1
    	rate := int64(512 * 1024)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. src/cmd/link/internal/sym/compilation_unit.go

    // loaded by the linker.
    //
    // These are used for both DWARF and pclntab generation.
    type CompilationUnit struct {
    	Lib       *Library      // Our library
    	PclnIndex int           // Index of this CU in pclntab
    	PCs       []dwarf.Range // PC ranges, relative to Textp[0]
    	DWInfo    *dwarf.DWDie  // CU root DIE
    	FileTable []string      // The file table used in this compilation unit.
    
    	Consts    LoaderSym   // Package constants DIEs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 20:39:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. platforms/software/publish/src/main/java/org/gradle/api/publish/internal/mapping/VersionMappingComponentDependencyResolver.java

                        }
                    } else if (rcs instanceof ProjectComponentSelector) {
                        ProjectComponentSelectorInternal pcs = (ProjectComponentSelectorInternal) rcs;
                        if (pcs.getIdentityPath().equals(identityPath)) {
                            return getModuleVersionId(selected);
                        }
                    }
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 22:25:49 UTC 2023
    - 6.9K bytes
    - Viewed (0)
Back to top