Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 308 for reallocation (0.27 sec)

  1. src/encoding/gob/encoder_test.go

    		if err != nil {
    			t.Fatal("bytes: decode:", err)
    		}
    		if !bytes.Equal(x, y) {
    			t.Errorf("bytes: expected %q got %q\n", x, y)
    		}
    		if addr != &y[0] {
    			t.Errorf("bytes: unnecessary reallocation")
    		}
    	}
    	// general slice
    	{
    		x := []rune("abcd")
    		enc := NewEncoder(buf)
    		err := enc.Encode(x)
    		if err != nil {
    			t.Errorf("ints: encode: %s", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental.cc

      if (input_tensors != nullptr) {
        // Note that we take the address of the elements in `all_input_tensors`
        // below. Allocate enough space so that no reallocation happens, which will
        // make the pointers invalid.
        all_input_tensors.reserve(num_inputs);
        for (int i = 0; i < num_inputs; ++i) {
          if (input_tensors[i] == nullptr) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcshared/cshared_test.go

    			libgodir += "_shared"
    		}
    	case "dragonfly", "freebsd", "linux", "netbsd", "openbsd", "solaris", "illumos":
    		libgodir += "_shared"
    	}
    	cc = append(cc, "-I", filepath.Join("pkg", libgodir))
    
    	// Force reallocation (and avoid aliasing bugs) for parallel tests that append to cc.
    	cc = cc[:len(cc):len(cc)]
    
    	if GOOS == "windows" {
    		exeSuffix = ".exe"
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcarchive/carchive_test.go

    			libbase += "_shared"
    		}
    	}
    	libgodir = filepath.Join(GOPATH, "pkg", libbase, "testcarchive")
    	cc = append(cc, "-I", libgodir)
    
    	// Force reallocation (and avoid aliasing bugs) for parallel tests that append to cc.
    	cc = cc[:len(cc):len(cc)]
    
    	if GOOS == "windows" {
    		exeSuffix = ".exe"
    	}
    
    	return m.Run()
    }
    
    func goEnv(key string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  5. src/runtime/export_test.go

    func MakeAddrRanges(a ...AddrRange) AddrRanges {
    	// Methods that manipulate the backing store of addrRanges.ranges should
    	// not be used on the result from this function (e.g. add) since they may
    	// trigger reallocation. That would normally be fine, except the new
    	// backing store won't come from the heap, but from persistentalloc, so
    	// we'll leak some memory implicitly.
    	ranges := make([]addrRange, 0, len(a))
    	total := uintptr(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  6. pkg/apis/resource/validation/validation_resourceclaim_test.go

    				claim.Status.DeallocationRequested = false
    				claim.Status.Allocation = nil
    				return claim
    			},
    		},
    		"invalid-deallocation-requested-removal": {
    			wantFailures: field.ErrorList{field.Forbidden(field.NewPath("status", "deallocationRequested"), "may not be cleared when `allocation` is set")},
    			oldClaim: func() *resource.ResourceClaim {
    				claim := validAllocatedClaim.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  7. pkg/apis/resource/validation/validation.go

    				}
    			}
    		}
    	}
    
    	// Updates to a populated resourceClaim.Status.Allocation are not allowed
    	if oldClaim.Status.Allocation != nil && resourceClaim.Status.Allocation != nil {
    		allErrs = append(allErrs, apimachineryvalidation.ValidateImmutableField(resourceClaim.Status.Allocation, oldClaim.Status.Allocation, fldPath.Child("allocation"))...)
    	}
    
    	if !oldClaim.Status.DeallocationRequested &&
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/stream_executor/stream_executor.h

      /*** EVENT CALLBACKS ***/
      // Create SP_Event. Performs platform-specific allocation and initialization
      // of an event.
      void (*create_event)(const SP_Device* device, SP_Event* event,
                           TF_Status* status);
    
      // Destroy SE_Event and perform any platform-specific deallocation and
      // cleanup of an event.
      void (*destroy_event)(const SP_Device* device, SP_Event event);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 24 08:40:35 UTC 2022
    - 21.6K bytes
    - Viewed (0)
  9. pkg/controller/resourceclaim/controller.go

    		claim := claim.DeepCopy()
    		if claim.Status.Allocation != nil {
    			// This can happen when a claim with immediate allocation
    			// stopped being used, remained allocated, and then got
    			// deleted. As above we then need to clear the allocation.
    			claim.Status.Allocation = nil
    			var err error
    			claim, err = ec.kubeClient.ResourceV1alpha2().ResourceClaims(claim.Namespace).UpdateStatus(ctx, claim, metav1.UpdateOptions{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/resource/v1alpha2/generated.proto

      // the time when allocation started.
      // +optional
      optional string driverName = 1;
    
      // Allocation is set by the resource driver once a resource or set of
      // resources has been allocated successfully. If this is not specified, the
      // resources have not been allocated yet.
      // +optional
      optional AllocationResult allocation = 2;
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top