- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 1,371 for Allocate (0.15 sec)
-
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) -
src/go/types/subst.go
} func (subst *subster) varList(in []*Var) (out []*Var, copied bool) { out = in for i, v := range in { if w := subst.var_(v); w != v { if !copied { // first variable that got substituted => allocate new out slice // and copy all variables new := make([]*Var, len(in)) copy(new, out) out = new copied = true } out[i] = w } } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11.1K bytes - Viewed (0) -
src/cmd/link/internal/ld/fallocate_test.go
} defer out.Close() // Try fallocate first. for { err = out.fallocate(1 << 10) if errors.Is(err, errors.ErrUnsupported) || err == errNoFallocate { // The underlying file system may not support fallocate t.Skip("fallocate is not supported") } if err == syscall.EINTR { continue // try again } if err != nil { t.Fatalf("fallocate failed: %v", err) } break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 05 14:17:36 UTC 2023 - 1.7K bytes - Viewed (0) -
pkg/controller/nodeipam/ipam/controller_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 04 20:48:08 UTC 2018 - 1.9K bytes - Viewed (0) -
pkg/kubeapiserver/options/options.go
// DefaultServiceNodePortRange is the default port range for NodePort services. var DefaultServiceNodePortRange = utilnet.PortRange{Base: 30000, Size: 2768} // DefaultServiceIPCIDR is a CIDR notation of IP range from which to allocate service cluster IPs var DefaultServiceIPCIDR = net.IPNet{IP: netutils.ParseIPSloppy("10.0.0.0"), Mask: net.CIDRMask(24, 32)} // DefaultEtcdPathPrefix is the default key prefix of etcd for API Server
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 20 08:42:09 UTC 2021 - 1.1K bytes - Viewed (0) -
src/runtime/mpagecache.go
} return c.allocN(npages) } // allocN is a helper which attempts to allocate npages worth of pages // from the cache. It represents the general case for allocating from // the page cache. // // Returns a base address and the amount of scavenged memory in the // allocated region in bytes. func (c *pageCache) allocN(npages uintptr) (uintptr, uintptr) { i := findBitRange64(c.cache, uint(npages))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 19 14:30:00 UTC 2023 - 5.6K bytes - Viewed (0) -
src/runtime/testdata/testprog/gc.go
// allocChunk-sized holes. Then, it triggers a heap growth by trying to // allocate as much memory as would fit in those holes. // // The heap growth should cause a large number of those holes to be // returned to the OS. const ( // The total amount of memory we're willing to allocate. allocTotal = 32 << 20 // The page cache could hide 64 8-KiB pages from the scavenger today.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 12.1K bytes - Viewed (0) -
test/fixedbugs/issue29362.go
// Verify that we don't consider a Go'd function's // arguments as pointers when they aren't. package main import ( "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: Thu Jan 03 20:17:01 UTC 2019 - 879 bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/bigstack_windows.c
// (compiled into a DLL). #include <windows.h> #include <stdio.h> #ifndef STACK_SIZE_PARAM_IS_A_RESERVATION #define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000 #endif typedef void callback(char*); // Allocate a stack that's much larger than the default. static const int STACK_SIZE = 16<<20; static callback *bigStackCallback; static void useStack(int bytes) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 02 15:18:26 UTC 2018 - 1.2K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/interfaces.go
import ( "errors" "fmt" "net" api "k8s.io/kubernetes/pkg/apis/core" ) // Interface manages the allocation of IP addresses out of a range. Interface // should be threadsafe. type Interface interface { Allocate(net.IP) error AllocateNext() (net.IP, error) Release(net.IP) error ForEach(func(net.IP)) CIDR() net.IPNet IPFamily() api.IPFamily Has(ip net.IP) bool Destroy() EnableMetrics()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:04 UTC 2023 - 1.6K bytes - Viewed (0)