Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 1,371 for Allocate (0.15 sec)

  1. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

      }
    
      public void testFromByteArray_withTooLongArrayInputThrowsIllegalArgumentException() {
        byte[] buffer = MANY_VALUES_PAIRED_STATS.toByteArray();
        byte[] tooLongByteArray =
            ByteBuffer.allocate(buffer.length + 2)
                .order(ByteOrder.LITTLE_ENDIAN)
                .put(buffer)
                .putChar('.')
                .array();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14K bytes
    - Viewed (0)
  2. src/sync/pool.go

    	s := p.localSize
    	l := p.local
    	if uintptr(pid) < s {
    		return indexLocal(l, pid), pid
    	}
    	if p.local == nil {
    		allPools = append(allPools, p)
    	}
    	// If GOMAXPROCS changes between GCs, we re-allocate the array and lose the old one.
    	size := runtime.GOMAXPROCS(0)
    	local := make([]poolLocal, size)
    	atomic.StorePointer(&p.local, unsafe.Pointer(&local[0])) // store-release
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. src/runtime/rt0_linux_ppc64le.s

    	XOR R0, R0	  // Make sure R0 is zero before _main
    	BR _main<>(SB)
    
    TEXT _rt0_ppc64le_linux_lib(SB),NOSPLIT|NOFRAME,$0
    	// This is called with ELFv2 calling conventions. Convert to Go.
    	// Allocate argument storage for call to newosproc0.
    	STACK_AND_SAVE_HOST_TO_GO_ABI(16)
    
    	MOVD	R3, _rt0_ppc64le_linux_lib_argc<>(SB)
    	MOVD	R4, _rt0_ppc64le_linux_lib_argv<>(SB)
    
    	// Synchronous initialization.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/strconv/strconv_test.go

    			ParseFloat(nextToOne, 64)
    		}},
    	}
    )
    
    var oneMB []byte // Will be allocated to 1MB of random data by TestCountMallocs.
    
    func TestCountMallocs(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping malloc count in short mode")
    	}
    	if runtime.GOMAXPROCS(0) > 1 {
    		t.Skip("skipping; GOMAXPROCS>1")
    	}
    	// Allocate a big messy buffer for AppendQuoteToASCII's test.
    	oneMB = make([]byte, 1e6)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 20:29:22 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  5. tensorflow/c/kernels_test.cc

    }
    
    REGISTER_OP("AllocateOutputOp1").Output("output1: float");
    
    TEST_F(DeviceKernelOpTest, TestAllocateOutputSizeOne) {
      auto my_compute_func = [](void* kernel, TF_OpKernelContext* ctx) {
        // Allocate output
        TF_Status* s = TF_NewStatus();
        int64_t dim = 1;
        size_t tensor_size_bytes = TF_DataTypeSize(TF_FLOAT);
        TF_Tensor* output = TF_AllocateOutput(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/phases/controlplane/manifests_test.go

    				"--client-ca-file=" + filepath.Join(testCertsDir, "ca.crt"),
    				"--requestheader-client-ca-file=" + filepath.Join(testCertsDir, "front-proxy-ca.crt"),
    				"--allocate-node-cidrs=true",
    				"--cluster-cidr=10.0.1.15/16",
    			},
    		},
    		{
    			name: "custom service-cluster-ip-range for " + cpVersion,
    			cfg: &kubeadmapi.ClusterConfiguration{
    				Networking: kubeadmapi.Networking{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 14:43:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/AbstractByteHasher.java

     *
     * @author Colin Decker
     */
    @ElementTypesAreNonnullByDefault
    abstract class AbstractByteHasher extends AbstractHasher {
      private final ByteBuffer scratch = ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN);
    
      /** Updates this hasher with the given byte. */
      protected abstract void update(byte b);
    
      /** Updates this hasher with the given bytes. */
      protected void update(byte[] b) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  8. internal/s3select/csv/reader.go

    		if r.err != nil {
    			return nil, r.err
    		}
    		// Move to next block
    		item, ok := <-r.queue
    		if !ok {
    			r.err = io.EOF
    			return nil, r.err
    		}
    		//nolint:staticcheck // SA6002 Using pointer would allocate more since we would have to copy slice header before taking a pointer.
    		r.csvDstPool.Put(r.current)
    		r.current = <-item.dst
    		r.err = item.err
    		r.recordsRead = 0
    	}
    	csvRecord := r.current[r.recordsRead]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/memorymanager/policy_static.go

    		return err
    	}
    	return nil
    }
    
    // Allocate call is idempotent
    func (p *staticPolicy) Allocate(s state.State, pod *v1.Pod, container *v1.Container) (rerr error) {
    	// allocate the memory only for guaranteed pods
    	if v1qos.GetPodQOS(pod) != v1.PodQOSGuaranteed {
    		return nil
    	}
    
    	podUID := string(pod.UID)
    	klog.InfoS("Allocate", "pod", klog.KObj(pod), "containerName", container.Name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Nov 12 07:34:55 UTC 2023
    - 34K bytes
    - Viewed (0)
  10. src/math/big/doc.go

    	sum.Add(sum, x)
    
    to accumulate values x in a sum.
    
    (By always passing in a result value via the receiver, memory use can be
    much better controlled. Instead of having to allocate new memory for each
    result, an operation can reuse the space allocated for the result value,
    and overwrite that value with the new result in the process.)
    
    Notational convention: Incoming method parameters (including the receiver)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top