Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for stk (0.04 sec)

  1. src/runtime/symtab.go

    func runtime_expandFinalInlineFrame(stk []uintptr) []uintptr {
    	// TODO: It would be more efficient to report only physical PCs to pprof and
    	// just expand the whole stack.
    	if len(stk) == 0 {
    		return stk
    	}
    	pc := stk[len(stk)-1]
    	tracepc := pc - 1
    
    	f := findfunc(tracepc)
    	if !f.valid() {
    		// Not a Go function.
    		return stk
    	}
    
    	u, uf := newInlineUnwinder(f, tracepc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  2. 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)
  3. src/runtime/stack.go

    }
    
    // stackfree frees an n byte stack allocation at stk.
    //
    // stackfree must run on the system stack because it uses per-P
    // resources and must not split the stack.
    //
    //go:systemstack
    func stackfree(stk stack) {
    	gp := getg()
    	v := unsafe.Pointer(stk.lo)
    	n := stk.hi - stk.lo
    	if n&(n-1) != 0 {
    		throw("stack not a power of 2")
    	}
    	if stk.lo+n < stk.hi {
    		throw("bad stack size")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  4. src/encoding/xml/xml.go

    func (d *Decoder) autoClose(t Token) (Token, bool) {
    	if d.stk == nil || d.stk.kind != stkStart {
    		return nil, false
    	}
    	for _, s := range d.AutoClose {
    		if strings.EqualFold(s, d.stk.name.Local) {
    			// This one should be auto closed if t doesn't close it.
    			et, ok := t.(EndElement)
    			if !ok || !strings.EqualFold(et.Name.Local, d.stk.name.Local) {
    				return EndElement{d.stk.name}, true
    			}
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  5. src/go/doc/comment/parse.go

    	stk := []byte{}
    	end = i
    Path:
    	for ; i < len(s); i++ {
    		if isPunct(s[i]) {
    			continue
    		}
    		if !isPath(s[i]) {
    			break
    		}
    		switch s[i] {
    		case '(':
    			stk = append(stk, ')')
    		case '{':
    			stk = append(stk, '}')
    		case '[':
    			stk = append(stk, ']')
    		case ')', '}', ']':
    			if len(stk) == 0 || stk[len(stk)-1] != s[i] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 33.5K bytes
    - Viewed (0)
  6. src/runtime/os_freebsd.go

    //go:nowritebarrier
    func newosproc(mp *m) {
    	stk := unsafe.Pointer(mp.g0.stack.hi)
    	if false {
    		print("newosproc stk=", stk, " m=", mp, " g=", mp.g0, " thr_start=", abi.FuncPCABI0(thr_start), " id=", mp.id, " ostk=", &mp, "\n")
    	}
    
    	param := thrparam{
    		start_func: abi.FuncPCABI0(thr_start),
    		arg:        unsafe.Pointer(mp),
    		stack_base: mp.g0.stack.lo,
    		stack_size: uintptr(stk) - mp.g0.stack.lo,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  7. src/runtime/metrics_test.go

    					}
    				}
    				stks = append(stks, have)
    				for i, stk := range acceptStacks {
    					if slices.Equal(have, stk) {
    						values[i][0] += s.Value[0]
    						values[i][1] += s.Value[1]
    					}
    				}
    			}
    			for i, stk := range acceptStacks {
    				n += values[i][0]
    				value += values[i][1]
    				t.Logf("stack %v has samples totaling n=%d value=%d", stk, values[i][0], values[i][1])
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  8. src/runtime/os_darwin.go

    }
    
    func goenvs() {
    	goenvs_unix()
    }
    
    // May run with m.p==nil, so write barriers are not allowed.
    //
    //go:nowritebarrierrec
    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")
    	}
    
    	// Initialize an attribute object.
    	var attr pthreadattr
    	var err int32
    	err = pthread_attr_init(&attr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/action.go

    		// vet expects to be able to import "fmt".
    		var stk load.ImportStack
    		stk.Push("vet")
    		p1, err := load.LoadImportWithFlags("fmt", p.Dir, p, &stk, nil, 0)
    		if err != nil {
    			base.Fatalf("unexpected error loading fmt package from package %s: %v", p.ImportPath, err)
    		}
    		stk.Pop()
    		aFmt := b.CompileAction(ModeBuild, depMode, p1)
    
    		var deps []*Action
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  10. src/runtime/os_linux.go

    )
    
    //go:noescape
    func clone(flags int32, stk, mp, gp, fn unsafe.Pointer) int32
    
    // 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)
    	/*
    	 * note: strace gets confused if we use CLONE_PTRACE here.
    	 */
    	if false {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
Back to top