- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 423 for Allocate (0.14 sec)
-
src/cmd/compile/internal/types/pkg.go
internedStrings = map[string]string{} ) func InternString(b []byte) string { internedStringsmu.Lock() s, ok := internedStrings[string(b)] // string(b) here doesn't allocate if !ok { s = string(b) internedStrings[s] = s } internedStringsmu.Unlock() return s
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 16:28:50 UTC 2023 - 3.1K bytes - Viewed (0) -
pkg/controller/nodeipam/node_ipam_controller.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 16:18:38 UTC 2024 - 5.4K bytes - Viewed (0) -
pilot/pkg/xds/nds_test.go
dnsProto "istio.io/istio/pkg/dns/proto" ) func TestNDS(t *testing.T) { cases := []struct { name string meta model.NodeMetadata expected *dnsProto.NameTable }{ { name: "auto allocate", meta: model.NodeMetadata{ DNSCapture: true, DNSAutoAllocate: true, }, expected: &dnsProto.NameTable{ Table: map[string]*dnsProto.NameTable_NameInfo{ "random-1.host.example": {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 4.6K bytes - Viewed (0) -
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) -
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) -
src/compress/flate/huffman_code.go
func (h *huffmanEncoder) generate(freq []int32, maxBits int32) { if h.freqcache == nil { // Allocate a reusable buffer with the longest possible frequency table. // Possible lengths are codegenCodeCount, offsetCodeCount and maxNumLit. // The largest of these is maxNumLit, so we allocate for that case. h.freqcache = make([]literalNode, maxNumLit+1) } list := h.freqcache[:len(freq)+1]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 9.7K bytes - Viewed (0) -
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) -
android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java
import java.io.InputStreamReader; import java.nio.charset.Charset; import java.util.Random; /** * Benchmarks for various potential implementations of {@code ByteSource.asCharSource(...).read()}. */ // These benchmarks allocate a lot of data so use a large heap @VmOptions({"-Xms12g", "-Xmx12g", "-d64"}) public class ByteSourceAsCharSourceReadBenchmark { enum ReadStrategy { TO_BYTE_ARRAY_NEW_STRING { @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 5.2K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/scope.go
// but topologymanager do not track providers anymore func (s *scope) allocateAlignedResources(pod *v1.Pod, container *v1.Container) error { for _, provider := range s.hintProviders { err := provider.Allocate(pod, container) if err != nil { return err } } return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 14 14:44:24 UTC 2023 - 5K bytes - Viewed (0) -
src/runtime/libfuzzer.go
// The number of PCs and PCFlags is the same as the number of 8-bit counters. Each PC table entry has // the size of two ptr-sized integers. We allocate one more byte than what we actually need so that we can // get a pointer representing the end of the PC table array. size := (uintptr(end)-uintptr(start))*unsafe.Sizeof(uintptr(0))*2 + 1 pcTables = make([]byte, size)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 23 01:12:02 UTC 2022 - 6.3K bytes - Viewed (0)