Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 45 of 45 for unsafeptr (0.15 sec)

  1. src/cmd/compile/internal/ssagen/ssa.go

    		if from.Kind() == to.Kind() {
    			return v
    		}
    
    		// unsafe.Pointer <--> *T
    		if to.IsUnsafePtr() && from.IsPtrShaped() || from.IsUnsafePtr() && to.IsPtrShaped() {
    			if s.checkPtrEnabled && checkPtrOK && to.IsPtr() && from.IsUnsafePtr() {
    				s.checkPtrAlignment(n, v, nil)
    			}
    			return v
    		}
    
    		// map <--> *hmap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/typecheck.go

    	types.TCOMPLEX128: "complex128",
    	types.TFLOAT32:    "float32",
    	types.TFLOAT64:    "float64",
    	types.TBOOL:       "bool",
    	types.TSTRING:     "string",
    	types.TPTR:        "pointer",
    	types.TUNSAFEPTR:  "unsafe.Pointer",
    	types.TSTRUCT:     "struct",
    	types.TINTER:      "interface",
    	types.TCHAN:       "chan",
    	types.TMAP:        "map",
    	types.TARRAY:      "array",
    	types.TSLICE:      "slice",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/expand_calls.go

    	ft := from.Type
    	if offset == 0 {
    		if ft == pt {
    			return from
    		}
    		// This captures common, (apparently) safe cases.  The unsafe cases involve ft == uintptr
    		if (ft.IsPtr() || ft.IsUnsafePtr()) && pt.IsPtr() {
    			return from
    		}
    	}
    	// Simplify, canonicalize
    	for from.Op == OpOffPtr {
    		offset += from.AuxInt
    		from = from.Args[0]
    	}
    	if from == x.sp {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/liveness/plive.go

    // t = type of sub-portion of v.
    func clobberWalk(b *ssa.Block, v *ir.Name, offset int64, t *types.Type) {
    	if !t.HasPointers() {
    		return
    	}
    	switch t.Kind() {
    	case types.TPTR,
    		types.TUNSAFEPTR,
    		types.TFUNC,
    		types.TCHAN,
    		types.TMAP:
    		clobberPtr(b, v, offset)
    
    	case types.TSTRING:
    		// struct { byte *str; int len; }
    		clobberPtr(b, v, offset)
    
    	case types.TINTER:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  5. pkg/controller/controller_utils.go

    	for _, p := range pods {
    		if IsPodActive(p) {
    			result = append(result, p)
    		} else {
    			logger.V(4).Info("Ignoring inactive pod", "pod", klog.KObj(p), "phase", p.Status.Phase, "deletionTime", klog.SafePtr(p.DeletionTimestamp))
    		}
    	}
    	return result
    }
    
    func FilterTerminatingPods(pods []*v1.Pod) []*v1.Pod {
    	var result []*v1.Pod
    	for _, p := range pods {
    		if IsPodTerminating(p) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
Back to top