Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,094 for allocations (0.15 sec)

  1. test/tinyfin.go

    // run
    
    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test finalizers work for tiny (combined) allocations.
    
    package main
    
    import (
    	"runtime"
    	"time"
    )
    
    func main() {
    	// Does not work on gccgo due to partially conservative GC.
    	// Try to enable when we have fully precise GC.
    	if runtime.Compiler == "gccgo" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 03 18:57:18 UTC 2015
    - 1.6K bytes
    - Viewed (0)
  2. src/runtime/checkptr.go

    		}
    	}
    
    	throw("checkptr: pointer arithmetic result points to invalid allocation")
    }
    
    // checkptrBase returns the base address for the allocation containing
    // the address p.
    //
    // Importantly, if p1 and p2 point into the same variable, then
    // checkptrBase(p1) == checkptrBase(p2). However, the converse/inverse
    // is not necessarily true as allocations can have trailing padding,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. cluster/addons/calico-policy-controller/ipamblock-crd.yaml

              spec:
                description: IPAMBlockSpec contains the specification for an IPAMBlock
                  resource.
                properties:
                  affinity:
                    type: string
                  allocations:
                    items:
                      type: integer
                      # TODO: This nullable is manually added in. We should update controller-gen
                      # to handle []*int properly itself.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 07 20:48:43 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  4. pkg/registry/core/service/portallocator/operation_test.go

    	r, err := NewInMemory(*pr)
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, port := range previouslyAllocated {
    		_ = r.Allocate(port)
    	}
    	freeAtStart := r.Free()
    
    	// Do some allocations with a dry run operation
    	toAllocate := []int{
    		10000,
    		10030,
    		10030,
    		10040,
    	}
    	expectedErrors := []error{
    		ErrAllocated,
    		nil,
    		ErrAllocated,
    		nil,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Aug 15 23:44:12 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  5. pkg/controller/nodeipam/ipam/cidr_allocator.go

    	// range allocator to do node CIDR range allocations.
    	RangeAllocatorType CIDRAllocatorType = "RangeAllocator"
    	// CloudAllocatorType is the allocator that uses cloud platform
    	// support to do node CIDR range allocations.
    	CloudAllocatorType CIDRAllocatorType = "CloudAllocator"
    	// IPAMFromClusterAllocatorType uses the ipam controller sync'ing the node
    	// CIDR range allocations from the cluster to the cloud.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 13:03:57 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Connection.kt

     * this class separates _allocations_ from _streams_. An allocation is created by a call, used for
     * one or more streams, and then released. An allocated connection won't be stolen by other calls
     * while a redirect or authorization challenge is being handled.
     *
     * When the maximum concurrent streams limit is reduced, some allocations will be rescinded.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. src/errors/errors_test.go

    import (
    	"errors"
    	"testing"
    )
    
    func TestNewEqual(t *testing.T) {
    	// Different allocations should not be equal.
    	if errors.New("abc") == errors.New("abc") {
    		t.Errorf(`New("abc") == New("abc")`)
    	}
    	if errors.New("abc") == errors.New("xyz") {
    		t.Errorf(`New("abc") == New("xyz")`)
    	}
    
    	// Same allocation should be equal to itself (not crash).
    	err := errors.New("jkl")
    	if err != err {
    		t.Errorf(`err != err`)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 21:55:10 UTC 2023
    - 765 bytes
    - Viewed (0)
  8. pkg/registry/core/service/ipallocator/controller/repair.go

    )
    
    // Repair is a controller loop that periodically examines all service ClusterIP allocations
    // and logs any errors, and then sets the compacted and accurate list of all allocated IPs.
    //
    // Handles:
    // * Duplicate ClusterIP assignments caused by operator action or undetected race conditions
    // * ClusterIPs that do not match the currently configured range
    // * Allocations to services that were not actually created due to a crash or powerloss
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  9. src/runtime/unsafe.go

    	// Check that underlying array doesn't straddle multiple heap objects.
    	// unsafestring64 has already checked for overflow.
    	if checkptrStraddles(ptr, uintptr(len64)) {
    		throw("checkptr: unsafe.String result straddles multiple allocations")
    	}
    }
    
    func panicunsafestringlen() {
    	panic(errorString("unsafe.String: len out of range"))
    }
    
    func panicunsafestringnilptr() {
    	panic(errorString("unsafe.String: ptr is nil and len is not zero"))
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:51:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. pkg/registry/core/service/portallocator/operation.go

    limitations under the License.
    */
    
    package portallocator
    
    // Encapsulates the semantics of a port allocation 'transaction':
    // It is better to leak ports than to double-allocate them,
    // so we allocate immediately, but defer release.
    // On commit we best-effort release the deferred releases.
    // On rollback we best-effort release any allocations we did.
    //
    // Pattern for use:
    //
    //	op := StartPortAllocationOperation(...)
    //	defer op.Finish
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 4.2K bytes
    - Viewed (0)
Back to top