Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 77 of 77 for Allocate (0.31 sec)

  1. src/runtime/coro.go

    // These switches continue until a call to coroexit(c),
    // which ends the use of the coro by releasing the blocked
    // goroutine in c and exiting the current goroutine.
    //
    // Coros are heap allocated and garbage collected, so that user code
    // can hold a pointer to a coro without causing potential dangling
    // pointer errors.
    type coro struct {
    	gp guintptr
    	f  func(*coro)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. pkg/test/framework/components/namespace/kube.go

    		_, err := c.Kube().CoreV1().Namespaces().Patch(context.TODO(), name, types.JSONPatchType, []byte(nsLabelPatch), metav1.PatchOptions{})
    		return err
    	})
    }
    
    // NewNamespace allocates a new testing namespace.
    func newKube(ctx resource.Context, cfg Config) (Instance, error) {
    	mu.Lock()
    	idctr++
    	nsid := idctr
    	r := rnd.Intn(99999)
    	mu.Unlock()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. internal/crypto/sse-kms.go

    	return key, err
    }
    
    // CreateMetadata encodes the sealed object key into the metadata and returns
    // the modified metadata. If the keyID and the kmsKey is not empty it encodes
    // both into the metadata as well. It allocates a new metadata map if metadata
    // is nil.
    func (ssekms) CreateMetadata(metadata map[string]string, keyID string, kmsKey []byte, sealedKey SealedKey, ctx kms.Context) map[string]string {
    	if sealedKey.Algorithm != SealAlgorithm {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. cmd/erasure-decode.go

    				readTriggerCh <- true
    				return
    			}
    			bufIdx := p.readerToBuf[i]
    			if p.buf[bufIdx] == nil {
    				// Reading first time on this disk, hence the buffer needs to be allocated.
    				// Subsequent reads will reuse this buffer.
    				p.buf[bufIdx] = make([]byte, p.shardSize)
    			}
    			// For the last shard, the shardsize might be less than previous shard sizes.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 21 14:36:21 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. istioctl/pkg/metrics/metrics.go

    	}
    
    	pl, err := client.PodsForSelector(context.TODO(), ctx.IstioNamespace(), "app.kubernetes.io/name=prometheus")
    	if err != nil {
    		return fmt.Errorf("not able to locate Prometheus pod: %v", err)
    	}
    
    	if len(pl.Items) < 1 {
    		return errors.New("no Prometheus pods found")
    	}
    
    	// only use the first pod in the list
    	promPod := pl.Items[0]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. src/runtime/mksizeclasses.go

    //
    // See malloc.go for overview.
    //
    // The size classes are chosen so that rounding an allocation
    // request up to the next size class wastes at most 12.5% (1.125x).
    //
    // Each size class has its own page count that gets allocated
    // and chopped up when new objects of the size class are needed.
    // That page count is chosen so that chopping up the run of
    // pages into objects of the given size wastes at most 12.5% (1.125x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. src/go/types/example_test.go

    // access to compiled packages for import.
    //
    //go:build !android && !ios && !js && !wasip1
    
    package types_test
    
    // This file shows examples of basic usage of the go/types API.
    //
    // To locate a Go package, use (*go/build.Context).Import.
    // To load, parse, and type-check a complete Go program
    // from source, use golang.org/x/tools/go/loader.
    
    import (
    	"fmt"
    	"go/ast"
    	"go/format"
    	"go/importer"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top