Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,371 for Allocate (0.16 sec)

  1. cmd/kube-controller-manager/app/options/nodeipamcontroller.go

    func (o *NodeIPAMControllerOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    	fs.StringVar(&o.ServiceCIDR, "service-cluster-ip-range", o.ServiceCIDR, "CIDR Range for Services in cluster. Requires --allocate-node-cidrs to be true")
    	fs.Int32Var(&o.NodeCIDRMaskSize, "node-cidr-mask-size", o.NodeCIDRMaskSize, "Mask size for node cidr in cluster. Default is 24 for IPv4 and 64 for IPv6.")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 21 06:08:58 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  2. pkg/registry/core/service/ipallocator/cidrallocator.go

    	if err != nil {
    		return err
    	}
    	return allocator.AllocateService(service, ip)
    }
    
    func (c *MetaAllocator) Allocate(ip net.IP) error {
    	allocator, err := c.getAllocator(ip)
    	if err != nil {
    		return err
    	}
    	return allocator.Allocate(ip)
    }
    
    func (c *MetaAllocator) AllocateNextService(service *api.Service) (net.IP, error) {
    	c.muTree.Lock()
    	defer c.muTree.Unlock()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java

     *
     * <p>{@link CharStreams#copy} has type specific optimizations for various common Appendable and
     * Reader implementations, this compares the performance of the different options.
     */
    // These benchmarks allocate a lot of data so use a large heap
    @VmOptions({"-Xms12g", "-Xmx12g", "-d64"})
    public class CharStreamsCopyBenchmark {
      enum CopyStrategy {
        OLD {
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 18:59:54 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. src/runtime/stack.go

    		n >>= 1
    		log2++
    	}
    	return log2
    }
    
    // Allocates a stack from the free pool. Must be called with
    // stackpool[order].item.mu held.
    func stackpoolalloc(order uint8) gclinkptr {
    	list := &stackpool[order].item.span
    	s := list.first
    	lockWithRankMayAcquire(&mheap_.lock, lockRankMheap)
    	if s == nil {
    		// no free stacks. Allocate another span worth.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  5. pkg/kubelet/userns/userns_manager.go

    	// "from" is a ID (UID/GID), set the corresponding userns of size
    	// userNsLength in the bit-array.
    	m.used.Allocate(index)
    	m.usedBy[pod] = from
    	return nil
    }
    
    // Release releases the user namespace allocated to the specified pod.
    func (m *UsernsManager) Release(podUID types.UID) {
    	if !utilfeature.DefaultFeatureGate.Enabled(features.UserNamespacesSupport) {
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/string_utils.cc

      memcpy(data_.data() + offset_.back(), str, len);
      offset_.push_back(offset_.back() + len);
      return absl::OkStatus();
    }
    
    int MiniDynamicBuffer::WriteToBuffer(char** buffer) {
      // Allocate sufficient memory to tensor buffer.
      int32_t num_strings = offset_.size() - 1;
      // Total bytes include:
      //   * size of content (data_.size)
      //   * offset of each tensor (sizeof(int32_t) * num_strings)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmServiceTest.java

        }
    
        @Test
        void emptySha1Calculator() {
            ChecksumAlgorithmService.ChecksumCalculator calculator =
                    service.select("SHA-1").getCalculator();
            calculator.update(ByteBuffer.allocate(0));
            assertEquals(calculator.checksum(), "da39a3ee5e6b4b0d3255bfef95601890afd80709");
        }
    
        @Test
        void calculateByte() throws IOException {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Dec 21 08:05:10 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. src/runtime/pprof/pprof.go

    		memStats = new(runtime.MemStats)
    		runtime.ReadMemStats(memStats)
    	}
    
    	// Find out how many records there are (MemProfile(nil, true)),
    	// allocate that many records, and get the data.
    	// There's a race—more records might be added between
    	// the two calls—so allocate a few extra records for safety
    	// and also try again if we're very unlucky.
    	// The loop should only execute one iteration in the common case.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  9. src/runtime/mcheckmark.go

    func startCheckmarks() {
    	assertWorldStopped()
    
    	// Clear all checkmarks.
    	for _, ai := range mheap_.allArenas {
    		arena := mheap_.arenas[ai.l1()][ai.l2()]
    		bitmap := arena.checkmarks
    
    		if bitmap == nil {
    			// Allocate bitmap on first use.
    			bitmap = (*checkmarksMap)(persistentalloc(unsafe.Sizeof(*bitmap), 0, &memstats.gcMiscSys))
    			if bitmap == nil {
    				throw("out of memory allocating checkmarks bitmap")
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. test/fibo.go

    			for i := 1; i < n; i++ {
    				f2 := nat(nil).halfAdd(f1, f0) // allocate a new f2 each time
    				f0, f1 = f1, f2
    			}
    		}
    	} else {
    		if opt {
    			var f2 nat // reuse f2
    			for i := 1; i < n; i++ {
    				f2 = f2.add(f1, f0)
    				f0, f1, f2 = f1, f2, f0
    			}
    		} else {
    			for i := 1; i < n; i++ {
    				f2 := nat(nil).add(f1, f0) // allocate a new f2 each time
    				f0, f1 = f1, f2
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 08 22:22:58 UTC 2014
    - 6.3K bytes
    - Viewed (0)
Back to top