- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 530 for Allocate (0.12 sec)
-
src/runtime/traceregion.go
} // Add the existing block to the full list. block.next = a.full a.full = block } // Allocate a new block. block = (*traceRegionAllocBlock)(sysAlloc(unsafe.Sizeof(traceRegionAllocBlock{}), &memstats.other_sys)) if block == nil { throw("traceRegion: out of memory") } // Allocate space for our current request, so we always make // progress. block.off.Store(n)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 3.2K bytes - Viewed (0) -
pkg/registry/core/service/portallocator/allocator.go
// include valid port range in error validPorts := r.portRange.String() return &ErrNotInRange{validPorts} } allocated, err := r.alloc.Allocate(offset) if err != nil { // update metrics r.metrics.incrementAllocationErrors("static") return err } if !allocated { // update metrics r.metrics.incrementAllocationErrors("static") return ErrAllocated } // update metrics
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 08 07:15:02 UTC 2024 - 7.4K bytes - Viewed (0) -
pkg/registry/core/service/allocator/storage/storage.go
baseKey: baseKey, resource: config.GroupResource, destroyFn: func() { once.Do(d) }, }, nil } // Allocate attempts to allocate the item. func (e *Etcd) Allocate(offset int) (bool, error) { e.lock.Lock() defer e.lock.Unlock() err := e.tryUpdate(func() error { ok, err := e.alloc.Allocate(offset) if err != nil { return err } if !ok { return errorUnableToAllocate } return nil })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 24 09:23:05 UTC 2023 - 6.5K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/endpoint.go
AllocationSize: int32(size), }, }, }) } // allocate issues Allocate gRPC call to the device plugin. func (e *endpointImpl) allocate(devs []string) (*pluginapi.AllocateResponse, error) { if e.isStopped() { return nil, fmt.Errorf(errEndpointStopped, e) } return e.api.Allocate(context.Background(), &pluginapi.AllocateRequest{ ContainerRequests: []*pluginapi.ContainerAllocateRequest{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 02 11:05:20 UTC 2022 - 3.9K bytes - Viewed (0) -
pkg/registry/core/service/allocator/bitmap.go
rand: rand.New(rand.NewSource(time.Now().UnixNano())), offset: offset, }, allocated: big.NewInt(0), count: 0, max: max, rangeSpec: rangeSpec, } return &a } // Allocate attempts to reserve the provided item. // Returns true if it was allocated, false if it was already in use func (r *AllocationBitmap) Allocate(offset int) (bool, error) { r.lock.Lock() defer r.lock.Unlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 25 20:32:40 UTC 2023 - 7.6K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/ReservedPortRange.groovy
final List<Integer> allocated = [] int current public ReservedPortRange(int startPort, int endPort) { this.startPort = startPort this.endPort = endPort current = startPort + new Random().nextInt(endPort - startPort) } /** * Allocate an available port * * @return the port that was allocated */ public int allocate() { try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Aug 10 14:46:58 UTC 2017 - 2.8K bytes - Viewed (0) -
test/fixedbugs/issue16095.go
// Initialize x. for i := range x { x[i] = byte(i) } // Force x to be allocated on the heap. sink = &x sink = nil // Go to deferreturn after the panic below. defer func() { recover() }() // This call collects the heap-allocated version of x (oops!) runtime.GC() // Allocate that same object again and clobber it. y := new([20]byte) for i := 0; i < 20; i++ { y[i] = 99 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 27 16:48:48 UTC 2016 - 1.9K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/AbstractAvailablePortAllocator.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 05 16:58:31 UTC 2022 - 3.1K bytes - Viewed (0) -
src/internal/saferio/io.go
// data but the input may be corrupt, or may be provided by an // untrustworthy attacker. package saferio import ( "io" "unsafe" ) // chunk is an arbitrary limit on how much memory we are willing // to allocate without concern. const chunk = 10 << 20 // 10M // ReadData reads n bytes from the input stream, but avoids allocating // all n bytes if n is large. This avoids crashing the program by
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 00:34:05 UTC 2023 - 3.4K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java
} @Override public HashCode hashInt(int input) { return hashBytes(ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(input).array()); } @Override public HashCode hashLong(long input) { return hashBytes(ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(input).array()); } @Override public HashCode hashUnencodedChars(CharSequence input) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 20 18:43:59 UTC 2021 - 3.8K bytes - Viewed (0)