Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for nstk (0.08 sec)

  1. 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)
  2. src/runtime/os_openbsd_syscall.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")
    	}
    
    	// Stack pointer must point inside stack area (as marked with MAP_STACK),
    	// rather than at the top of it.
    	param := tforkt{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 20:44:45 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. src/runtime/os_dragonfly.go

    func lwp_start(uintptr)
    
    // 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, " lwp_start=", abi.FuncPCABI0(lwp_start), " id=", mp.id, " ostk=", &mp, "\n")
    	}
    
    	var oset sigset
    	sigprocmask(_SIG_SETMASK, &sigset_all, &oset)
    
    	params := lwpparams{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. cmd/namespace-lock_test.go

    	ctx := context.Background()
    
    	for i := 0; i < 10000; i++ {
    		nsLk := newNSLock(false)
    
    		// lk1; ref=1
    		if !nsLk.lock(ctx, "volume", "path", "source", "opsID", false, time.Second) {
    			t.Fatal("failed to acquire lock")
    		}
    
    		// lk2
    		lk2ch := make(chan struct{})
    		go func() {
    			defer close(lk2ch)
    			nsLk.lock(ctx, "volume", "path", "source", "opsID", false, 1*time.Millisecond)
    		}()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  5. 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)
  6. src/runtime/pprof/map.go

    	e := &m.free[0]
    	m.free = m.free[1:]
    	e.nextHash = m.hash[h]
    	e.tag = tag
    
    	if len(m.freeStk) < len(stk) {
    		m.freeStk = make([]uintptr, 1024)
    	}
    	// Limit cap to prevent append from clobbering freeStk.
    	e.stk = m.freeStk[:len(stk):len(stk)]
    	m.freeStk = m.freeStk[len(stk):]
    
    	for j := range stk {
    		e.stk[j] = uintptr(stk[j])
    	}
    	if m.hash == nil {
    		m.hash = make(map[uintptr]*profMapEntry)
    	}
    	m.hash[h] = e
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 05 21:51:02 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  7. cmd/namespace-lock.go

    	n.lockMapMutex.Lock()
    	nsLk, found := n.lockMap[resource]
    	if !found {
    		nsLk = &nsLock{
    			LRWMutex: lsync.NewLRWMutex(),
    		}
    		// Add a count to indicate that a parallel unlock doesn't clear this entry.
    	}
    	nsLk.ref++
    	n.lockMap[resource] = nsLk
    	n.lockMapMutex.Unlock()
    
    	// Locking here will block (until timeout).
    	if readLock {
    		locked = nsLk.GetRLock(ctx, opsID, lockSource, timeout)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 05 23:56:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  8. src/runtime/pprof/mprof_test.go

    	allocateTransient2MInline()
    	allocatePersistent1K()
    	allocateReflect()
    	memSink = nil
    
    	runtime.GC() // materialize stats
    
    	memoryProfilerRun++
    
    	tests := []struct {
    		stk    []string
    		legacy string
    	}{{
    		stk: []string{"runtime/pprof.allocatePersistent1K", "runtime/pprof.TestMemoryProfiler"},
    		legacy: fmt.Sprintf(`%v: %v \[%v: %v\] @ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:20:22 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  9. 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)
  10. src/runtime/testdata/testprogcgo/numgoroutine.go

    	return string(sbuf), true
    }
    
    var callbackok bool
    
    //export CallbackNumGoroutine
    func CallbackNumGoroutine() {
    	stk, ok := checkNumGoroutine("second", 2+baseGoroutines)
    	if !ok {
    		return
    	}
    	if !strings.Contains(stk, "CallbackNumGoroutine") {
    		fmt.Printf("missing CallbackNumGoroutine from stack:\n%s\n", stk)
    		return
    	}
    
    	callbackok = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:52:37 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top