Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for nstk (0.4 sec)

  1. src/runtime/tracestack.go

    			if gp.syscallsp != 0 {
    				pcBuf[1] = gp.syscallpc
    				nstk += 1 + fpTracebackPCs(unsafe.Pointer(gp.syscallbp), pcBuf[2:])
    			} else {
    				pcBuf[1] = gp.sched.pc
    				nstk += 1 + fpTracebackPCs(unsafe.Pointer(gp.sched.bp), pcBuf[2:])
    			}
    		}
    	}
    	if nstk > 0 {
    		nstk-- // skip runtime.goexit
    	}
    	if nstk > 0 && gp.goid == 1 {
    		nstk-- // skip runtime.main
    	}
    	id := trace.stackTab[gen%2].put(pcBuf[:nstk])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/runtime/tracecpu.go

    			// do here, we only want to report full records.
    			continue
    		}
    
    		// Construct the stack for insertion to the stack table.
    		nstk := 1
    		pcBuf[0] = logicalStackSentinel
    		for ; nstk < len(pcBuf) && nstk-1 < len(stk); nstk++ {
    			pcBuf[nstk] = uintptr(stk[nstk-1])
    		}
    
    		// Write out a trace event.
    		w := unsafeTraceWriter(gen, trace.cpuBuf[gen%2])
    
    		// Ensure we have a place to write to.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. src/runtime/mprof.go

    	b := (*bucket)(persistentalloc(size, 0, &memstats.buckhash_sys))
    	b.typ = typ
    	b.nstk = uintptr(nstk)
    	return b
    }
    
    // stk returns the slice in b holding the stack. The caller can asssume that the
    // backing array is immutable.
    func (b *bucket) stk() []uintptr {
    	stk := (*[maxProfStackDepth]uintptr)(add(unsafe.Pointer(b), unsafe.Sizeof(*b)))
    	if b.nstk > maxProfStackDepth {
    		// prove that slicing works; otherwise a failure requires a P
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  4. src/runtime/heapdump.go

    	}
    	dumpint(uint64(m.NumGC))
    }
    
    func dumpmemprof_callback(b *bucket, nstk uintptr, pstk *uintptr, size, allocs, frees uintptr) {
    	stk := (*[100000]uintptr)(unsafe.Pointer(pstk))
    	dumpint(tagMemProf)
    	dumpint(uint64(uintptr(unsafe.Pointer(b))))
    	dumpint(uint64(size))
    	dumpint(uint64(nstk))
    	for i := uintptr(0); i < nstk; i++ {
    		pc := stk[i]
    		f := findfunc(pc)
    		if !f.valid() {
    			var buf [64]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/runtime/profbuf.go

    // for a single contiguous record with a stack of length nstk.
    func (b *profBuf) canWriteRecord(nstk int) bool {
    	br := b.r.load()
    	bw := b.w.load()
    
    	// room for tag?
    	if countSub(br.tagCount(), bw.tagCount())+len(b.tags) < 1 {
    		return false
    	}
    
    	// room for data?
    	nd := countSub(br.dataCount(), bw.dataCount()) + len(b.data)
    	want := 2 + int(b.hdrsize) + nstk
    	i := int(bw.dataCount() % uint32(len(b.data)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. src/runtime/os_netbsd.go

    		})
    	}
    }
    
    // May run with m.p==nil, so write barriers are not allowed.
    //
    //go:nowritebarrier
    func newosproc(mp *m) {
    	stk := unsafe.Pointer(mp.g0.stack.hi)
    	if false {
    		print("newosproc stk=", stk, " m=", mp, " g=", mp.g0, " id=", mp.id, " ostk=", &mp, "\n")
    	}
    
    	var uc ucontextt
    	getcontext(unsafe.Pointer(&uc))
    
    	// _UC_SIGMASK does not seem to work here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. src/internal/trace/internal/testgen/go122/trace.go

    //
    // This is a convenience function for easily adding correct
    // stacks to traces.
    func (g *Generation) Stack(stk []trace.StackFrame) uint64 {
    	if len(stk) == 0 {
    		return 0
    	}
    	if len(stk) > 32 {
    		panic("stack too big for test")
    	}
    	var stkc stack
    	copy(stkc.stk[:], stk)
    	stkc.len = len(stk)
    	if id, ok := g.stacks[stkc]; ok {
    		return id
    	}
    	id := uint64(len(g.stacks) + 1)
    	g.stacks[stkc] = id
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/rsc.io/markdown/inline.go

    	stackOf := func(c byte) int {
    		return strings.IndexByte(chars, c)
    	}
    
    	trimStack := func() {
    		for i := range stack {
    			stk := &stack[i]
    			for len(*stk) > 0 && (*stk)[len(*stk)-1].i >= len(dst) {
    				*stk = (*stk)[:len(*stk)-1]
    			}
    		}
    	}
    
    Src:
    	for i := 0; i < len(src); i++ {
    		if open, ok := src[i].(*openPlain); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

        private static class ActivationWalker extends MavenTransformer {
    
            private final Deque<ActivationFrame> stk;
    
            ActivationWalker(Deque<ActivationFrame> stk, UnaryOperator<String> transformer) {
                super(transformer);
                this.stk = stk;
            }
    
            private ActivationFrame nextFrame(String property) {
                return new ActivationFrame(property, Optional.empty());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jun 10 11:04:53 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  10. src/runtime/pprof/protomem.go

    					stk = stk[i:]
    					break
    				}
    			}
    			locs = b.appendLocsForStack(locs[:0], stk)
    			if len(locs) > 0 {
    				break
    			}
    			hideRuntime = false // try again, and show all frames next time.
    		}
    
    		values[0], values[1] = scaleHeapSample(r.AllocObjects, r.AllocBytes, rate)
    		values[2], values[3] = scaleHeapSample(r.InUseObjects(), r.InUseBytes(), rate)
    		var blockSize int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top