Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,371 for Allocate (0.17 sec)

  1. guava/src/com/google/common/io/ReaderInputStream.java

        checkArgument(bufferSize > 0, "bufferSize must be positive: %s", bufferSize);
        encoder.reset();
    
        charBuffer = CharBuffer.allocate(bufferSize);
        Java8Compatibility.flip(charBuffer);
    
        byteBuffer = ByteBuffer.allocate(bufferSize);
      }
    
      @Override
      public void close() throws IOException {
        reader.close();
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  2. src/runtime/arena_test.go

    				t.Errorf("expected zero-sized type to be allocated as zerobase: got %x, want %x", v, ZeroBase)
    			}
    			arena.Free()
    		})
    		t.Run("[]struct{}", func(t *testing.T) {
    			arena := NewUserArena()
    			var sl []struct{}
    			arena.Slice(&sl, 10)
    			if v := unsafe.Pointer(&sl[0]); v != ZeroBase {
    				t.Errorf("expected zero-sized type to be allocated as zerobase: got %x, want %x", v, ZeroBase)
    			}
    			arena.Free()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/policy_none.go

    }
    
    func (p *nonePolicy) Name() string {
    	return string(PolicyNone)
    }
    
    func (p *nonePolicy) Start(s state.State) error {
    	klog.InfoS("None policy: Start")
    	return nil
    }
    
    func (p *nonePolicy) Allocate(s state.State, pod *v1.Pod, container *v1.Container) error {
    	return nil
    }
    
    func (p *nonePolicy) RemoveContainer(s state.State, podUID string, containerName string) error {
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/PropertyResourceBundleFallbackCharsetTest.groovy

            result.toString() == new String(iso8859bytes, "ISO-8859-1")
            result.toString() != new String(iso8859bytes, "UTF-8")
        }
    
        static ByteBuffer buffer(byte[] bytes) {
            ByteBuffer byteBuffer = ByteBuffer.allocate(bytes.length)
            byteBuffer.put(bytes)
            byteBuffer.rewind()
            return byteBuffer
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return CharBuffer.allocate(generateInt());
      }
    
      @Generates
      ByteBuffer generateByteBuffer() {
        return ByteBuffer.allocate(generateInt());
      }
    
      @Generates
      ShortBuffer generateShortBuffer() {
        return ShortBuffer.allocate(generateInt());
      }
    
      @Generates
      IntBuffer generateIntBuffer() {
        return IntBuffer.allocate(generateInt());
      }
    
      @Generates
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 28K bytes
    - Viewed (0)
  6. pkg/registry/core/service/allocator/interfaces.go

    limitations under the License.
    */
    
    package allocator
    
    // Interface manages the allocation of items out of a range. Interface
    // should be threadsafe.
    type Interface interface {
    	Allocate(int) (bool, error)
    	AllocateNext() (int, bool, error)
    	Release(int) error
    	ForEach(func(int))
    	Has(int) bool
    	Free() int
    
    	// Destroy shuts down all internal structures.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 22 10:35:43 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. platforms/software/version-control/src/main/java/org/gradle/vcs/git/GitVersionControlSpec.java

         * full contract of {@link java.net.URL} clients of this interface.
         * Specifically, {@link java.net.URL} extends {@link URI} to add network
         * operations which are both unsuited for simple data specification and
         * allocate additional memory.</p>
         */
        URI getUrl();
    
        /**
         * Sets the URL of the repository.
         */
        void setUrl(URI url);
    
        /**
         * Sets the URL of the repository.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. test/fixedbugs/issue27695b.go

    // are initialized, when calling functions and methods
    // via reflect.
    
    package main
    
    import (
    	"reflect"
    	"runtime"
    	"unsafe"
    )
    
    var badPtr uintptr
    
    var sink []byte
    
    func init() {
    	// Allocate large enough to use largeAlloc.
    	b := make([]byte, 1<<16-1)
    	sink = b // force heap allocation
    	//  Any space between the object and the end of page is invalid to point to.
    	badPtr = uintptr(unsafe.Pointer(&b[len(b)-1])) + 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 29 20:25:24 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  9. src/runtime/pprof/mprof_test.go

    func allocatePersistent1K() {
    	for i := 0; i < 32; i++ {
    		// Can't use slice because that will introduce implicit allocations.
    		obj := &Obj32{link: persistentMemSink}
    		persistentMemSink = obj
    	}
    }
    
    // Allocate transient memory using reflect.Call.
    
    func allocateReflectTransient() {
    	memSink = make([]byte, 2<<20)
    }
    
    func allocateReflect() {
    	rv := reflect.ValueOf(allocateReflectTransient)
    	rv.Call(nil)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:20:22 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  10. test/finprofiled.go

    import (
    	"runtime"
    	"time"
    	"unsafe"
    )
    
    func main() {
    	runtime.MemProfileRate = 1
    	// Allocate 1M 4-byte objects and set a finalizer for every third object.
    	// Assuming that tiny block size is 16, some objects get finalizers setup
    	// only for middle bytes. The finalizer resurrects that object.
    	// As the result, all allocated memory must stay alive.
    	const (
    		N             = 1 << 20
    		tinyBlockSize = 16 // runtime._TinySize
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 05:48:00 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top