Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 59 for getcallersp (1.94 sec)

  1. tensorflow/compiler/mlir/lite/metrics/types_util.cc

            .Case<CallSiteLoc>([&](CallSiteLoc loc) {
              mutable_location->set_type(ConverterErrorData::CALLSITELOC);
              LocationExtractor(loc.getCallee()).Extract(error_data);
              LocationExtractor(loc.getCaller()).Extract(error_data);
            })
            .Case<FusedLoc>([&](FusedLoc loc) {
              auto locations = loc.getLocations();
              size_t num_locs = locations.size();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. internal/grid/README.md

    Sample handler:
    ```go
        handler :=  func(ctx context.Context, payload []byte, in <-chan []byte, out chan<- []byte) *RemoteErr {
            fmt.Println("Got request with initial payload", p, "from", GetCaller(ctx context.Context))
            fmt.Println("Subroute:", GetSubroute(ctx))
            for {
                select {
                case <-ctx.Done():
                    return nil
                case req, ok := <-in:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. src/runtime/mbarrier.go

    //
    //go:linkname reflect_typedmemmove reflect.typedmemmove
    func reflect_typedmemmove(typ *_type, dst, src unsafe.Pointer) {
    	if raceenabled {
    		raceWriteObjectPC(typ, dst, getcallerpc(), abi.FuncPCABIInternal(reflect_typedmemmove))
    		raceReadObjectPC(typ, src, getcallerpc(), abi.FuncPCABIInternal(reflect_typedmemmove))
    	}
    	if msanenabled {
    		msanwrite(dst, typ.Size_)
    		msanread(src, typ.Size_)
    	}
    	if asanenabled {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. src/runtime/string.go

    		// you find the indices and convert the subslice to string.
    		return ""
    	}
    	if raceenabled {
    		racereadrangepc(unsafe.Pointer(ptr),
    			uintptr(n),
    			getcallerpc(),
    			abi.FuncPCABIInternal(slicebytetostring))
    	}
    	if msanenabled {
    		msanread(unsafe.Pointer(ptr), uintptr(n))
    	}
    	if asanenabled {
    		asanread(unsafe.Pointer(ptr), uintptr(n))
    	}
    	if n == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. src/runtime/map.go

    // NOTE: The returned pointer may keep the whole map live, so don't
    // hold onto it for very long.
    func mapaccess1(t *maptype, h *hmap, key unsafe.Pointer) unsafe.Pointer {
    	if raceenabled && h != nil {
    		callerpc := getcallerpc()
    		pc := abi.FuncPCABIInternal(mapaccess1)
    		racereadpc(unsafe.Pointer(h), callerpc, pc)
    		raceReadObjectPC(t.Key, key, callerpc, pc)
    	}
    	if msanenabled && h != nil {
    		msanread(key, t.Key.Size_)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go

    	// 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
    	runtime.Callers(3, pc[:])
    	f := runtime.FuncForPC(pc[0])
    	if f == nil {
    		return "Unable to find caller"
    	}
    	return f.Name()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/runtime/chan.go

    	return c.qcount == c.dataqsiz
    }
    
    // entry point for c <- x from compiled code.
    //
    //go:nosplit
    func chansend1(c *hchan, elem unsafe.Pointer) {
    	chansend(c, elem, true, getcallerpc())
    }
    
    /*
     * generic single channel send/recv
     * If block is not nil,
     * then the protocol will not
     * sleep but return if it could
     * not complete.
     *
     * sleep can wake up with g.param == nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      // Note: Usage of the return value of this function may not be interleaved
      // with insertions to the callers map. This could occur if GetCallers is
      // called with two separate functions, the 2nd one incurs a resize and then
      // both first and 2nd stored callers are used.
      ArrayRef<Operation*> GetCallers(func::FuncOp fn);
    
      // Mapping between ValuePort (which corresponds to an OpResult or smaller,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  9. src/runtime/coro.go

    }
    
    //go:linkname newcoro
    
    // newcoro creates a new coro containing a
    // goroutine blocked waiting to run f
    // and returns that coro.
    func newcoro(f func(*coro)) *coro {
    	c := new(coro)
    	c.f = f
    	pc := getcallerpc()
    	gp := getg()
    	systemstack(func() {
    		mp := gp.m
    		start := corostart
    		startfv := *(**funcval)(unsafe.Pointer(&start))
    		gp = newproc1(startfv, gp, pc, true, waitReasonCoroutine)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. src/runtime/error.go

    	}
    	print(s)
    }
    
    // panicwrap generates a panic for a call to a wrapped value method
    // 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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top