Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,028 for Allocate (0.24 sec)

  1. test/fixedbugs/issue15002.go

    import (
    	"fmt"
    	"syscall"
    )
    
    // Use global variables so the compiler
    // doesn't know that they are constants.
    var p = syscall.Getpagesize()
    var zero = 0
    var one = 1
    
    func main() {
    	// Allocate 2 pages of memory.
    	b, err := syscall.Mmap(-1, 0, 2*p, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANON|syscall.MAP_PRIVATE)
    	if err != nil {
    		panic(err)
    	}
    	// Mark the second page as faulting.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. src/runtime/mfixalloc.go

    // write barrier to be called since that could result in the object being reachable.
    type mlink struct {
    	_    sys.NotInHeap
    	next *mlink
    }
    
    // Initialize f to allocate objects of the given size,
    // using the allocator to obtain chunks of memory.
    func (f *fixalloc) init(size uintptr, first func(arg, p unsafe.Pointer), arg unsafe.Pointer, stat *sysMemStat) {
    	if size > _FixAllocChunk {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 24 20:28:25 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. src/runtime/os_darwin.go

    //go:nosplit
    //go:nowritebarrierrec
    func libpreinit() {
    	initsig(true)
    }
    
    // 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) // OS X wants >= 8K
    	mp.gsignal.m = mp
    	if GOOS == "darwin" && GOARCH == "arm64" {
    		// mlock the signal stack to work around a kernel bug where it may
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  4. pkg/registry/core/service/ipallocator/controller/repair_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	previous.Allocate(netutils.ParseIPSloppy("192.168.1.10"))
    
    	_, secondaryCIDR, _ := netutils.ParseCIDRSloppy("2000::/108")
    	secondaryPrevious, err := ipallocator.NewInMemory(secondaryCIDR)
    	if err != nil {
    		t.Fatal(err)
    	}
    	secondaryPrevious.Allocate(netutils.ParseIPSloppy("2000::1"))
    
    	var dst api.RangeAllocation
    	err = previous.Snapshot(&dst)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  5. src/runtime/os_netbsd.go

    // 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
    }
    
    // Called to initialize a new m (including the bootstrap m).
    // Called on the new thread, cannot allocate memory.
    func minit() {
    	gp := getg()
    	gp.m.procid = uint64(lwp_self())
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go

    		//   panicking with ErrAbortHandler also suppresses logging of a stack trace to the server's error log.
    		return
    	}
    
    	// Same as stdlib http server code. Manually allocate stack trace buffer size
    	// to prevent excessively large logs
    	const size = 64 << 10
    	stacktrace := make([]byte, size)
    	stacktrace = stacktrace[:runtime.Stack(stacktrace, false)]
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. pkg/volume/util/selinux.go

    		// and all options returned by contextOptions are known.
    		return "", err
    	}
    	// InitLabels() may allocate a new unique SELinux label in kubelet memory. The label is *not* allocated
    	// in the container runtime. Clear it to avoid memory problems.
    	// ReleaseLabel on non-allocated label is NOOP.
    	selinux.ReleaseLabel(processLabel)
    
    	return fileLabel, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 14:40:21 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. src/runtime/os_plan9.go

    	}
    	if neg {
    		n = -n
    	}
    	return n
    }
    
    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) {
    	// Initialize stack and goroutine for note handling.
    	mp.gsignal = malg(32 * 1024)
    	mp.gsignal.m = mp
    	mp.notesig = (*int8)(mallocgc(_ERRMAX, nil, true))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/stackalloc.go

    			}
    
    			if names[v.ID] == empty {
    				if f.pass.debug > stackDebug {
    					fmt.Printf("stackalloc value %s to name %s\n", v, *name)
    				}
    				names[v.ID] = *name
    			}
    		}
    	}
    
    	// Allocate args to their assigned locations.
    	for _, v := range f.Entry.Values {
    		if !hasAnyArgOp(v) {
    			continue
    		}
    		if v.Aux == nil {
    			f.Fatalf("%s has nil Aux\n", v.LongString())
    		}
    		if v.Op == OpArg {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  10. tensorflow/c/tf_tensor.h

    // memory alignment preferences.
    TF_CAPI_EXPORT extern size_t TF_TensorDefaultAlignment();
    
    // Allocate and return a new Tensor.
    //
    // This function is an alternative to TF_NewTensor and should be used when
    // memory is allocated to pass the Tensor to the C API. The allocated memory
    // satisfies TensorFlow's memory alignment preferences and should be preferred
    // over calling malloc and free.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 16:40:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top