Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 652 for caller1 (0.1 sec)

  1. src/runtime/callers_test.go

    }
    
    // Test that a defer after a successful recovery looks like it is called directly
    // from the function with the defers.
    func TestCallersAfterRecovery(t *testing.T) {
    	want := []string{"runtime.Callers", "runtime_test.TestCallersAfterRecovery.func1", "runtime_test.TestCallersAfterRecovery"}
    
    	defer func() {
    		pcs := make([]uintptr, 20)
    		pcs = pcs[:runtime.Callers(0, pcs)]
    		testCallersEqual(t, pcs, want)
    	}()
    	defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * exception is propagated to the caller exactly as-is. If, on the other hand, the time limit is
       * reached, the proxy will attempt to abort the call to the target, and will throw an {@link
       * UncheckedTimeoutException} to the caller.
       *
       * <p>It is important to note that the primary purpose of the proxy object is to return control to
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  3. src/runtime/extern.go

    import (
    	"internal/goarch"
    	"internal/goos"
    )
    
    // Caller reports file and line number information about function invocations on
    // the calling goroutine's stack. The argument skip is the number of stack frames
    // to ascend, with 0 identifying the caller of Caller.  (For historical reasons the
    // meaning of skip differs between Caller and [Callers].) The return values report the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. src/runtime/stack_test.go

    	useStackPtrs(n-1, b)
    }
    
    type structWithMethod struct{}
    
    func (s structWithMethod) caller() string {
    	_, file, line, ok := Caller(1)
    	if !ok {
    		panic("Caller failed")
    	}
    	return fmt.Sprintf("%s:%d", file, line)
    }
    
    func (s structWithMethod) callers() []uintptr {
    	pc := make([]uintptr, 16)
    	return pc[:Callers(0, pc)]
    }
    
    func (s structWithMethod) stack() string {
    	buf := make([]byte, 4<<10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  5. src/log/slog/logger.go

    	if !l.Enabled(ctx, level) {
    		return
    	}
    	var pc uintptr
    	if !internal.IgnorePC {
    		var pcs [1]uintptr
    		// skip [runtime.Callers, this function, this function's caller]
    		runtime.Callers(3, pcs[:])
    		pc = pcs[0]
    	}
    	r := NewRecord(time.Now(), level, msg, pc)
    	r.AddAttrs(attrs...)
    	if ctx == nil {
    		ctx = context.Background()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 18:26:18 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

        if (!symbol_uses.has_value()) {
          return failure();
        }
        for (auto use : *symbol_uses) {
          Operation* caller = use.getUser();
          bool changed = false;
          rewriter.startOpModification(caller);
          for (auto [result, type] :
               llvm::zip(caller->getResults(), return_types)) {
            if (result.getType() != type) {
              result.setType(type);
              changed = true;
            }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. tests/integration/pilot/common/traffic.go

    	// setupOpts allows modifying options based on sources/destinations
    	setupOpts func(src echo.Caller, opts *echo.CallOptions)
    	// check is used to build validators dynamically when using RunForApps based on the active/src dest pair
    	check     func(src echo.Caller, opts *echo.CallOptions) echo.Checker
    	checkForN func(src echo.Caller, dst echo.Services, opts *echo.CallOptions) echo.Checker
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 19:10:01 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go

    	// Do not sleep with the lock held because that causes all callers of HandleError to block.
    	// We only want the current goroutine to block.
    	// A negative or zero duration causes time.Sleep to return immediately.
    	// If the time moves backwards for any reason, do nothing.
    	time.Sleep(r.minPeriod - d)
    }
    
    // GetCaller returns the caller of the function that calls it.
    func GetCaller() string {
    	var pc [1]uintptr
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. src/runtime/asm_ppc64x.s

    	MOVD	m_gsignal(R7), R8
    	CMP	g, R8
    	BNE	3(PC)
    	BL	runtime·badmorestackgsignal(SB)
    	BL	runtime·abort(SB)
    
    	// Called from f.
    	// Set m->morebuf to f's caller.
    	MOVD	R5, (m_morebuf+gobuf_pc)(R7)	// f's caller's PC
    	MOVD	R1, (m_morebuf+gobuf_sp)(R7)	// f's caller's SP
    	MOVD	g, (m_morebuf+gobuf_g)(R7)
    
    	// Call newstack on m->g0's stack.
    	MOVD	m_g0(R7), g
    	BL	runtime·save_g(SB)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 45.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/wait/backoff.go

    // backoff will not exceed the given max. If the backoff is not called within resetDuration, the backoff is reset.
    // This backoff manager is used to reduce load during upstream unhealthiness.
    //
    // Deprecated: Will be removed when the legacy Poll methods are removed. Callers should construct a
    // Backoff struct, use DelayWithReset() to get a DelayFunc that periodically resets itself, and then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 16.5K bytes
    - Viewed (0)
Back to top