Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for findfunc (0.28 sec)

  1. src/runtime/mgcscavenge_test.go

    		name string
    		mark func(markFunc)
    		find func(findFunc)
    	}
    	for _, test := range []testCase{
    		{
    			name: "Uninitialized",
    			mark: func(_ markFunc) {},
    			find: func(_ findFunc) {},
    		},
    		{
    			name: "OnePage",
    			mark: func(mark markFunc) {
    				mark(PageBase(BaseChunkIdx, 3), PageBase(BaseChunkIdx, 4))
    			},
    			find: func(find findFunc) {
    				find(BaseChunkIdx, 3)
    			},
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  2. src/runtime/symtab.go

    	return f.datap.textAddr(f.entryOff)
    }
    
    //go:linkname badFuncInfoEntry runtime.funcInfo.entry
    func badFuncInfoEntry(funcInfo) uintptr
    
    // findfunc looks up function metadata for a PC.
    //
    // It is nosplit because it's part of the isgoexception
    // implementation.
    //
    // findfunc should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  3. src/runtime/preempt.go

    }
    
    // asyncPreemptStack is the bytes of stack space required to inject an
    // asyncPreempt call.
    var asyncPreemptStack = ^uintptr(0)
    
    func init() {
    	f := findfunc(abi.FuncPCABI0(asyncPreempt))
    	total := funcMaxSPDelta(f)
    	f = findfunc(abi.FuncPCABIInternal(asyncPreempt2))
    	total += funcMaxSPDelta(f)
    	// Add some overhead for return PCs, etc.
    	asyncPreemptStack = uintptr(total) + 8*goarch.PtrSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. src/debug/gosym/pclntab.go

    			GoType:    0,
    			Func:      f,
    			goVersion: t.version,
    		}
    		f.Sym = &syms[i]
    	}
    	return funcs
    }
    
    // findFunc returns the funcData corresponding to the given program counter.
    func (t *LineTable) findFunc(pc uint64) funcData {
    	ft := t.funcTab()
    	if pc < ft.pc(0) || pc >= ft.pc(ft.Count()) {
    		return funcData{}
    	}
    	idx := sort.Search(int(t.nfunctab), func(i int) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 19:43:24 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  5. src/runtime/tracestack.go

    				skip--
    			} else if n < len(dst) {
    				dst[n] = retPC
    				n++
    			}
    			return n < len(dst)
    		}
    	)
    
    outer:
    	for _, retPC := range pcBuf[1:] {
    		callPC := retPC - 1
    		fi := findfunc(callPC)
    		if !fi.valid() {
    			// There is no funcInfo if callPC belongs to a C function. In this case
    			// we still keep the pc, but don't attempt to expand inlined frames.
    			if more := skipOrAdd(retPC); !more {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. pkg/slices/slices_test.go

    				return s == "b"
    			},
    			want: &elements[1],
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := FindFunc(tt.elements, tt.fn); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("FindFunc got %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestFilter(t *testing.T) {
    	tests := []struct {
    		name     string
    		elements []string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. src/runtime/error.go

    // with a nil pointer receiver.
    //
    // It is called from the generated wrapper code.
    func panicwrap() {
    	pc := getcallerpc()
    	name := funcNameForPrint(funcname(findfunc(pc)))
    	// name is something like "main.(*T).F".
    	// We want to extract pkg ("main"), typ ("T"), and meth ("F").
    	// Do it by finding the parens.
    	i := bytealg.IndexByteString(name, '(')
    	if i < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. src/runtime/panic.go

    	// may try to read a stale LR that looks like a Go code
    	// pointer and wander into the woods.
    	if gp.m.incgo || findfunc(pc).valid() {
    		// This wasn't a bad call, so use PC as sigpanic's
    		// return PC.
    		return true
    	}
    	if findfunc(lr).valid() {
    		// This was a bad call, but the LR is good, so use the
    		// LR as sigpanic's return PC.
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  9. src/runtime/stack.go

    		// Update syscallsp, syscallpc in case traceback uses them.
    		morebuf := thisg.m.morebuf
    		gp.syscallsp = morebuf.sp
    		gp.syscallpc = morebuf.pc
    		pcname, pcoff := "(unknown)", uintptr(0)
    		f := findfunc(gp.sched.pc)
    		if f.valid() {
    			pcname = funcname(f)
    			pcoff = gp.sched.pc - f.entry()
    		}
    		print("runtime: newstack at ", pcname, "+", hex(pcoff),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/gateway/conditions.go

    				Reason:  ConfigErrorReason(gw.DeniedReason.Reason),
    				Message: gw.DeniedReason.Message,
    			}
    		}
    
    		var currentConditions []metav1.Condition
    		currentStatus := slices.FindFunc(currentParents, func(s k8s.RouteParentStatus) bool {
    			return parentRefString(s.ParentRef) == parentRefString(gw.OriginalReference) &&
    				s.ControllerName == k8s.GatewayController(features.ManagedGatewayController)
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 13:05:41 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top