Home | History | Annotate | Download | only in runtime

Lines Matching defs:stk

124 // stk returns the slice in b holding the stack.
125 func (b *bucket) stk() []uintptr {
126 stk := (*[maxStack]uintptr)(add(unsafe.Pointer(b), unsafe.Sizeof(*b)))
127 return stk[:b.nstk:b.nstk]
148 // Return the bucket for stk[0:nstk], allocating new bucket if needed.
149 func stkbucket(typ bucketType, size uintptr, stk []uintptr, alloc bool) *bucket {
159 for _, pc := range stk {
174 if b.typ == typ && b.hash == h && b.size == size && eqslice(b.stk(), stk) {
184 b := newBucket(typ, len(stk))
185 copy(b.stk(), stk)
244 var stk [maxStack]uintptr
245 nstk := callers(4, stk[:])
247 b := stkbucket(memProfile, size, stk[:nstk], true)
316 var stk [maxStack]uintptr
318 nstk = callers(skip, stk[:])
320 nstk = gcallers(gp.m.curg, skip, stk[:])
323 b := stkbucket(which, 0, stk[:nstk], true)
497 copy(r.Stack0[:], b.stk())
507 fn(b, b.nstk, &b.stk()[0], b.size, mp.allocs, mp.frees)
545 i := copy(r.Stack0[:], b.stk())
574 i := copy(r.Stack0[:], b.stk())