Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 503 for allocators (0.46 sec)

  1. src/cmd/compile/internal/ssa/_gen/allocators.go

    }
    
    type derived struct {
    	name string // name for alloc/free functions
    	typ  string // the type they return/accept
    	base string // underlying allocator
    }
    
    func genAllocators() {
    	allocators := []allocator{
    		{
    			name:     "ValueSlice",
    			typ:      "[]*Value",
    			capacity: "cap(%s)",
    			mak:      "make([]*Value, %s)",
    			resize:   "%s[:%s]",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/allocators.go

    // Code generated from _gen/allocators.go using 'go generate'; DO NOT EDIT.
    
    package ssa
    
    import (
    	"internal/unsafeheader"
    	"math/bits"
    	"sync"
    	"unsafe"
    )
    
    var poolFreeValueSlice [27]sync.Pool
    
    func (c *Cache) allocValueSlice(n int) []*Value {
    	var s []*Value
    	n2 := n
    	if n2 < 32 {
    		n2 = 32
    	}
    	b := bits.Len(uint(n2 - 1))
    	v := poolFreeValueSlice[b-5].Get()
    	if v == nil {
    		s = make([]*Value, 1<<b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 23:00:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. pkg/registry/core/service/storage/alloc.go

    	return allocated, err
    }
    
    func (al *Allocators) allocIPs(service *api.Service, toAlloc map[api.IPFamily]string, dryRun bool) (map[api.IPFamily]string, error) {
    	allocated := make(map[api.IPFamily]string)
    
    	for family, ip := range toAlloc {
    		allocator := al.serviceIPAllocatorsByFamily[family] // should always be there, as we pre validate
    		if dryRun {
    			allocator = allocator.DryRun()
    		}
    		if ip == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
  4. pkg/controller/nodeipam/ipam/doc.go

    */
    
    // Package ipam provides different allocators for assigning IP ranges to nodes.
    // We currently support several kinds of IPAM allocators (these are denoted by
    // the CIDRAllocatorType):
    //   - RangeAllocator is an allocator that assigns PodCIDRs to nodes and works
    //     in conjunction with the RouteController to configure the network to get
    //     connectivity.
    //   - CloudAllocator is an allocator that synchronizes PodCIDRs from IP
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/cache.go

    	// Reusable regalloc state.
    	regallocValues []valState
    
    	ValueToProgAfter []*obj.Prog
    	debugState       debugState
    
    	Liveness interface{} // *gc.livenessFuncCache
    
    	// Free "headers" for use by the allocators in allocators.go.
    	// Used to put slices in sync.Pools without allocation.
    	hdrValueSlice []*[]*Value
    	hdrInt64Slice []*[]int64
    }
    
    func (c *Cache) Reset() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 23:00:54 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. pkg/registry/core/service/ipallocator/cidrallocator.go

    // MetaAllocator maintains a Tree with the ServiceCIDRs containing an IP Allocator
    // on the nodes. Since each allocator doesn't stored the IPAddresses because it reads
    // them from the informer cache, it is cheap to create and delete IP Allocators.
    // MetaAllocator forwards the request to any of the internal allocators that has free
    // addresses.
    
    // MetaAllocator implements current allocator interface using
    // ServiceCIDR and IPAddress API objects.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  7. pkg/controller/servicecidrs/servicecidrs_controller.go

    		// If there are no IPAddress depending on this ServiceCIDR is safe to remove it,
    		// however, there can be a race when the allocators still consider the ServiceCIDR
    		// ready and allocate a new IPAddress from them, to avoid that, we wait during a
    		// a grace period to be sure the deletion change has been propagated to the allocators
    		// and no new IPAddress is going to be allocated.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18K bytes
    - Viewed (0)
  8. pkg/registry/core/rest/storage_core.go

    		primaryClusterIPAllocator, err = ipallocator.New(&serviceClusterIPRange, func(max int, rangeSpec string, offset int) (allocator.Interface, error) {
    			var mem allocator.Snapshottable
    			mem = allocator.NewAllocationMapWithOffset(max, rangeSpec, offset)
    			// TODO etcdallocator package to return a storage interface via the storageFactory
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  9. pkg/registry/networking/servicecidr/strategy.go

    	"k8s.io/kubernetes/pkg/apis/networking"
    	"k8s.io/kubernetes/pkg/apis/networking/validation"
    	"sigs.k8s.io/structured-merge-diff/v4/fieldpath"
    )
    
    // serviceCIDRStrategy implements verification logic for ServiceCIDR allocators.
    type serviceCIDRStrategy struct {
    	runtime.ObjectTyper
    	names.NameGenerator
    }
    
    // Strategy is the default logic that applies when creating and updating Replication ServiceCIDR objects.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.h

      // than the return value of B although both could point to the same resource.
      // It seems highly unlikely to encounter such a case but, to be safe, this
      // should be revisited for new resource-allocators that might potentially
      // break our currently guaranteed correctness.
      // For context, we are very conservative here compared to
      // `auto_control_deps.py` where it is assumed that allocated resource values
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top