Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 74 for stk (0.02 sec)

  1. test/fixedbugs/issue22083.go

    	return w.a[i]
    }
    
    func main() {
    	defer func() {
    		e := recover()
    		if e == nil {
    			panic("bounds check didn't fail")
    		}
    		stk := string(debug.Stack())
    		if !strings.Contains(stk, "issue22083.go:40") {
    			panic("wrong stack trace: " + stk)
    		}
    	}()
    	foo := Wrapper{a: []int{0, 1, 2}}
    	_ = foo.Get(0)
    	_ = foo.Get(1)
    	_ = foo.Get(2)
    	_ = foo.Get(3) // stack trace should mention this line
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 09:27:37 UTC 2017
    - 791 bytes
    - Viewed (0)
  2. src/runtime/os_netbsd_386.go

    package runtime
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    func lwp_mcontext_init(mc *mcontextt, stk unsafe.Pointer, mp *m, gp *g, fn uintptr) {
    	// Machine dependent mcontext initialisation for LWP.
    	mc.__gregs[_REG_EIP] = uint32(abi.FuncPCABI0(lwp_tramp))
    	mc.__gregs[_REG_UESP] = uint32(uintptr(stk))
    	mc.__gregs[_REG_EBX] = uint32(uintptr(unsafe.Pointer(mp)))
    	mc.__gregs[_REG_EDX] = uint32(uintptr(unsafe.Pointer(gp)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 22:12:04 UTC 2021
    - 617 bytes
    - Viewed (0)
  3. src/runtime/os_netbsd_amd64.go

    package runtime
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    func lwp_mcontext_init(mc *mcontextt, stk unsafe.Pointer, mp *m, gp *g, fn uintptr) {
    	// Machine dependent mcontext initialisation for LWP.
    	mc.__gregs[_REG_RIP] = uint64(abi.FuncPCABI0(lwp_tramp))
    	mc.__gregs[_REG_RSP] = uint64(uintptr(stk))
    	mc.__gregs[_REG_R8] = uint64(uintptr(unsafe.Pointer(mp)))
    	mc.__gregs[_REG_R9] = uint64(uintptr(unsafe.Pointer(gp)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 22:12:04 UTC 2021
    - 614 bytes
    - Viewed (0)
  4. src/runtime/runtime_unix_test.go

    			for atomic.LoadUint32(&stop) == 0 {
    				syscall.Close(-1)
    			}
    			wg.Done()
    		}()
    	}
    
    	max := 10000
    	if testing.Short() {
    		max = 100
    	}
    	stk := make([]runtime.StackRecord, 128)
    	for n := 0; n < max; n++ {
    		_, ok := runtime.GoroutineProfile(stk)
    		if !ok {
    			t.Fatalf("GoroutineProfile failed")
    		}
    	}
    
    	// If the program didn't crash, we passed.
    	atomic.StoreUint32(&stop, 1)
    	wg.Wait()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/phi.go

    		// variable/value pair to reinstate on exit
    		n int32 // variable ID
    		v *ssa.Value
    
    		// Note: only one of b or n,v will be set.
    	}
    	var stk []stackEntry
    
    	stk = append(stk, stackEntry{b: s.f.Entry})
    	for len(stk) > 0 {
    		work := stk[len(stk)-1]
    		stk = stk[:len(stk)-1]
    
    		b := work.b
    		if b == nil {
    			// On exit from a block, this case will undo any assignments done below.
    			values[work.n] = work.v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  6. src/internal/trace/traceviewer/emitter.go

    func (e *Emitter) Stack(stk []*trace.Frame) int {
    	return e.buildBranch(e.frameTree, stk)
    }
    
    // buildBranch builds one branch in the prefix tree rooted at ctx.frameTree.
    func (e *Emitter) buildBranch(parent frameNode, stk []*trace.Frame) int {
    	if len(stk) == 0 {
    		return parent.id
    	}
    	last := len(stk) - 1
    	frame := stk[last]
    	stk = stk[:last]
    
    	node, ok := parent.children[frame.PC]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:29:58 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  7. src/cmd/trace/viewer.go

    	"time"
    )
    
    // viewerFrames returns the frames of the stack of ev. The given frame slice is
    // used to store the frames to reduce allocations.
    func viewerFrames(stk trace.Stack) []*trace.Frame {
    	var frames []*trace.Frame
    	stk.Frames(func(f trace.StackFrame) bool {
    		frames = append(frames, &trace.Frame{
    			PC:   f.PC,
    			Fn:   f.Func,
    			File: f.File,
    			Line: int(f.Line),
    		})
    		return true
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. src/runtime/pprof/proto.go

    			stk = stk[len(l.pcs):]
    			continue
    		}
    
    		frames, symbolizeResult := allFrames(addr)
    		if len(frames) == 0 { // runtime.goexit.
    			if id := b.emitLocation(); id > 0 {
    				locs = append(locs, id)
    			}
    			stk = stk[1:]
    			continue
    		}
    
    		if added := b.deck.tryAdd(addr, frames, symbolizeResult); added {
    			stk = stk[1:]
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 13 20:40:52 UTC 2023
    - 25.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/load/test.go

    			// the cycle as (for example) package p imports package q imports package r
    			// imports package p.
    			stk = append(stk, ptest.ImportPath)
    			slices.Reverse(stk)
    
    			return &PackageError{
    				ImportStack:   stk,
    				Err:           errors.New("import cycle not allowed in test"),
    				IsImportCycle: true,
    			}
    		}
    		for _, dep := range p.Internal.Imports {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  10. src/runtime/os_netbsd_arm.go

    package runtime
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    func lwp_mcontext_init(mc *mcontextt, stk unsafe.Pointer, mp *m, gp *g, fn uintptr) {
    	// Machine dependent mcontext initialisation for LWP.
    	mc.__gregs[_REG_R15] = uint32(abi.FuncPCABI0(lwp_tramp))
    	mc.__gregs[_REG_R13] = uint32(uintptr(stk))
    	mc.__gregs[_REG_R0] = uint32(uintptr(unsafe.Pointer(mp)))
    	mc.__gregs[_REG_R1] = uint32(uintptr(unsafe.Pointer(gp)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top