Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 53 for Deref (0.04 sec)

  1. src/cmd/cgo/gcc.go

    	if !ok {
    		return false
    	}
    
    	addr := ""
    	deref := ""
    	if p.isVariable(index.X) {
    		addr = "&"
    		deref = "*"
    	}
    
    	fmt.Fprintf(sb, "_cgoIndex%d := %s%s; ", i, addr, gofmtPos(index.X, index.X.Pos()))
    	origX := index.X
    	index.X = ast.NewIdent(fmt.Sprintf("_cgoIndex%d", i))
    	if deref == "*" {
    		index.X = &ast.StarExpr{X: index.X}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/expr.go

    		n.SetType(nil)
    		return n
    	}
    
    	// TODO(mdempsky): Remove (along with ctxType above) once I'm
    	// confident this code path isn't needed any more.
    	if l.Op() == ir.OTYPE {
    		base.Fatalf("unexpected type in deref expression: %v", l)
    	}
    
    	if !t.IsPtr() {
    		if top&(ctxExpr|ctxStmt) != 0 {
    			base.Errorf("invalid indirect of %L", n.X)
    			n.SetType(nil)
    			return n
    		}
    		base.Errorf("%v is not a type", l)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. src/go/types/named.go

    	assert(origm != nil)
    
    	check := t.check
    	// Ensure that the original method is type-checked.
    	if check != nil {
    		check.objDecl(origm, nil)
    	}
    
    	origSig := origm.typ.(*Signature)
    	rbase, _ := deref(origSig.Recv().Type())
    
    	// If rbase is t, then origm is already the instantiated method we're looking
    	// for. In this case, we return origm to preserve the invariant that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. pkg/controller/cronjob/cronjob_controllerv2.go

    		// The CronJob is being deleted.
    		// Don't do anything other than updating status.
    		return nil, updateStatus, nil
    	}
    
    	logger := klog.FromContext(ctx)
    	if cronJob.Spec.TimeZone != nil {
    		timeZone := ptr.Deref(cronJob.Spec.TimeZone, "")
    		if _, err := time.LoadLocation(timeZone); err != nil {
    			logger.V(4).Info("Not starting job because timeZone is invalid", "cronjob", klog.KObj(cronJob), "timeZone", timeZone, "err", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    		if compiled.Program == nil {
    			// rule is empty
    			continue
    		}
    
    		// If ratcheting is enabled, allow rule with oldSelf to evaluate
    		// when `optionalOldSelf` is set to true
    		optionalOldSelfRule := ptr.Deref(rule.OptionalOldSelf, false)
    		if compiled.UsesOldSelf && oldObj == nil {
    			// transition rules are evaluated only if there is a comparable existing value
    			// But if the rule uses optional oldSelf and gate is enabled we allow
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  6. pkg/controller/resourceclaim/controller.go

    		}
    	}
    
    	return nil
    }
    
    func owningPod(claim *resourcev1alpha2.ResourceClaim) (string, types.UID) {
    	for _, owner := range claim.OwnerReferences {
    		if ptr.Deref(owner.Controller, false) &&
    			owner.APIVersion == "v1" &&
    			owner.Kind == "Pod" {
    			return owner.Name, owner.UID
    		}
    	}
    	return "", ""
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  7. pkg/controller/job/job_controller_test.go

    				t.Errorf("unexpected number of failed pods. Expected %d, saw %d\n", tc.wantStatusFailed, actual.Status.Failed)
    			}
    			if ptr.Deref(actual.Status.Terminating, 0) != ptr.Deref(tc.wantStatusTerminating, 0) {
    				t.Errorf("unexpected number of terminating pods. Expected %d, saw %d\n", ptr.Deref(tc.wantStatusTerminating, 0), ptr.Deref(actual.Status.Terminating, 0))
    			}
    		})
    	}
    }
    
    func TestSyncJobWithJobSuccessPolicy(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  8. src/go/types/expr.go

    				}
    			}
    			typ = check.typ(e.Type)
    			base = typ
    
    		case hint != nil:
    			// no composite literal type present - use hint (element type of enclosing type)
    			typ = hint
    			base, _ = deref(coreType(typ)) // *T implies &T{}
    			if base == nil {
    				check.errorf(e, InvalidLit, "invalid composite literal element type %s (no core type)", typ)
    				goto Error
    			}
    
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. doc/asm.html

    // so actually
    // void atomicload64(uint64 *res, uint64 volatile *addr);
    TEXT runtime·atomicload64(SB), NOSPLIT, $0-12
    	MOVL	ptr+0(FP), AX
    	TESTL	$7, AX
    	JZ	2(PC)
    	MOVL	0, AX // crash with nil ptr deref
    	LEAL	ret_lo+4(FP), BX
    	// MOVQ (%EAX), %MM0
    	BYTE $0x0f; BYTE $0x6f; BYTE $0x00
    	// MOVQ %MM0, 0(%EBX)
    	BYTE $0x0f; BYTE $0x7f; BYTE $0x03
    	// EMMS
    	BYTE $0x0F; BYTE $0x77
    	RET
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 19:15:27 UTC 2023
    - 36.3K bytes
    - Viewed (1)
  10. src/cmd/compile/internal/types2/expr.go

    				break
    			}
    			typ = check.typ(e.Type)
    			base = typ
    
    		case hint != nil:
    			// no composite literal type present - use hint (element type of enclosing type)
    			typ = hint
    			base, _ = deref(coreType(typ)) // *T implies &T{}
    			if base == nil {
    				check.errorf(e, InvalidLit, "invalid composite literal element type %s (no core type)", typ)
    				goto Error
    			}
    
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top