Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 530 for Allocate (0.11 sec)

  1. test/fixedbugs/issue67255.go

    	for i := 10; i < 200; i++ {
    		// The objects we're allocating here are pointer-ful. Some will
    		// max out their size class, which are the ones we want.
    		// We also allocate from small to large, so that the object which
    		// maxes out its size class is the last one allocated in that class.
    		// This allocation pattern leaves the next object in the class
    		// unallocated, which we need to reproduce the bug.
    		objs = append(objs, make([]*byte, i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 922 bytes
    - Viewed (0)
  2. src/runtime/os_wasm.go

    //go:nosplit
    func osyield_no_g() {
    	osyield()
    }
    
    type sigset struct{}
    
    // Called to initialize a new m (including the bootstrap m).
    // Called on the parent thread (main thread in case of bootstrap), can allocate memory.
    func mpreinit(mp *m) {
    	mp.gsignal = malg(32 * 1024)
    	mp.gsignal.m = mp
    }
    
    //go:nosplit
    func usleep_no_g(usec uint32) {
    	usleep(usec)
    }
    
    //go:nosplit
    func sigsave(p *sigset) {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/ir/tfr_types.h

      static TFRTypeStorage* construct(TypeStorageAllocator& allocator, KeyTy key) {
        // Allocate a new storage instance.
        auto byteSize = TFRTypeStorage::totalSizeToAlloc<StringAttr>(key.size());
        auto rawMem = allocator.allocate(byteSize, alignof(TFRTypeStorage));
        auto result = ::new (rawMem) TFRTypeStorage(key.size());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 07:17:01 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/MyMem.h

      void* CU_realloc(void *ptr, size_t size, unsigned int uiLine, const char* szFileName);
      CU_EXPORT void CU_dump_memory_usage(const char*);
    
      /** c-allocate with memory tracking. */
      #define CU_CALLOC(x, y)         CU_calloc((x), (y), __LINE__, __FILE__)
      /** m-allocate with memory tracking. */
      #define CU_MALLOC(x)            CU_malloc((x), __LINE__, __FILE__)
      /** Free with memory tracking. */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. src/runtime/testdata/testwintls/main.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <windows.h>
    
    int main(int argc, char **argv) {
        if (argc < 3) {
            return 1;
        }
        // Allocate more than 64 TLS indices
        // so the Go runtime doesn't find
        // enough space in the TEB TLS slots.
        for (int i = 0; i < 65; i++) {
            TlsAlloc();
        }
        HMODULE hlib = LoadLibrary(argv[1]);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 25 15:37:00 UTC 2023
    - 692 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testerrors/testdata/malloc.go

    package main
    
    // #include <stdlib.h>
    import "C"
    
    import (
    	"fmt"
    	"runtime"
    )
    
    func main() {
    	var size C.size_t
    	size--
    
    	// The Dragonfly libc succeeds when asked to allocate
    	// 0xffffffffffffffff bytes, so pass a different value that
    	// causes it to fail.
    	if runtime.GOOS == "dragonfly" {
    		size = C.size_t(0x7fffffff << (32 * (^uintptr(0) >> 63)))
    	}
    
    	p := C.malloc(size)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 766 bytes
    - Viewed (0)
  7. pilot/pkg/xds/testdata/nds-se.yaml

      name: service-none-wildcard
      namespace: ns2
    spec:
      hosts:
        - "*.random-4.host.example"
      # expect no address to be auto allocated
      ports:
        - number: 80
          name: http
          protocol: HTTP
      resolution: NONE
    ---
    # this should not have any name table entry
    # as we dont auto allocate for none mode services
    apiVersion: networking.istio.io/v1alpha3
    kind: ServiceEntry
    metadata:
      name: service-none-no-wildcard
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 08 09:17:55 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/list_work_estimator.go

    	numStored, err := e.countGetterFn(key(requestInfo))
    	switch {
    	case err == ObjectCountStaleErr:
    		// object count going stale is indicative of degradation, so we should
    		// be conservative here and allocate maximum seats to this list request.
    		// NOTE: if a CRD is removed, its count will go stale first and then the
    		// pruner will eventually remove the CRD from the cache.
    		return WorkEstimate{InitialSeats: maxSeats}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 11:56:42 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. src/runtime/mcentral.go

    		traceRelease(trace)
    	}
    
    	// If we sweep spanBudget spans without finding any free
    	// space, just allocate a fresh span. This limits the amount
    	// of time we can spend trying to find free space and
    	// amortizes the cost of small object sweeping over the
    	// benefit of having a full free span to allocate from. By
    	// setting this to 100, we limit the space overhead to 1%.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. test/fixedbugs/issue20780.go

    func f() { // GC_ERROR "stack frame too large"
    	// Note: This test relies on the fact that we currently always
    	// spill function-results to the stack, even if they're so
    	// large that we would normally heap allocate them. If we ever
    	// improve the backend to spill temporaries to the heap, this
    	// test will probably need updating to find some new way to
    	// construct an overly large stack frame.
    	g(h(), h())
    }
    
    func g(Big, Big)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jan 10 08:01:49 UTC 2021
    - 755 bytes
    - Viewed (0)
Back to top