Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 107 for pmap (0.17 sec)

  1. pkg/typemap/map.go

    import (
    	"reflect"
    
    	"istio.io/istio/pkg/ptr"
    )
    
    // TypeMap provides a map that holds a map of Type -> Value. There can be only a single value per type.
    // The value stored for a type must be of the same type as the key.
    type TypeMap struct {
    	inner map[reflect.Type]any
    }
    
    func NewTypeMap() TypeMap {
    	return TypeMap{make(map[reflect.Type]any)}
    }
    
    func Set[T any](t TypeMap, v T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. pilot/pkg/model/endpointshards.go

    // Shardz returns a full deep copy of the global map of shards. This should be used only for testing
    // and debugging, as the cloning is expensive.
    func (e *EndpointIndex) Shardz() map[string]map[string]*EndpointShards {
    	e.mu.RLock()
    	defer e.mu.RUnlock()
    	out := make(map[string]map[string]*EndpointShards, len(e.shardsBySvc))
    	for svcKey, v := range e.shardsBySvc {
    		out[svcKey] = make(map[string]*EndpointShards, len(v))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java

            map.putAll(m);
            assertThat(map.get("THREE"), is("3"));
            assertThat(map.get("FOUR"), is("4"));
            assertThat(map.size(), is(4));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testPerformance() throws Exception {
            for (int j = 0; j < 3; ++j) {
                final int num = 100000;
                final Map<String, String> hmap = new HashMap<String, String>();
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func makemap64(mapType *byte, hint int64, mapbuf *any) (hmap map[any]any)
    func makemap(mapType *byte, hint int, mapbuf *any) (hmap map[any]any)
    func makemap_small() (hmap map[any]any)
    func mapaccess1(mapType *byte, hmap map[any]any, key *any) (val *any)
    func mapaccess1_fast32(mapType *byte, hmap map[any]any, key uint32) (val *any)
    func mapaccess1_fast64(mapType *byte, hmap map[any]any, key uint64) (val *any)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. src/go/ast/commentmap.go

    // entries of cmap for which a corresponding node exists in
    // the AST specified by node.
    func (cmap CommentMap) Filter(node Node) CommentMap {
    	umap := make(CommentMap)
    	Inspect(node, func(n Node) bool {
    		if g := cmap[n]; len(g) > 0 {
    			umap[n] = g
    		}
    		return true
    	})
    	return umap
    }
    
    // Comments returns the list of comment groups in the comment map.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/mmap/mmap_unix.go

    //go:build unix && (!solaris || go1.20)
    
    package mmap
    
    import (
    	"fmt"
    	"io/fs"
    	"os"
    	"syscall"
    )
    
    func mmapFile(f *os.File, _ *Data) (Data, error) {
    	st, err := f.Stat()
    	if err != nil {
    		return Data{}, err
    	}
    	size := st.Size()
    	pagesize := int64(os.Getpagesize())
    	if int64(int(size+(pagesize-1))) != size+(pagesize-1) {
    		return Data{}, fmt.Errorf("%s: too large for mmap", f.Name())
    	}
    	n := int(size)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 21:40:49 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/outbuf_mmap.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package ld
    
    import (
    	"syscall"
    )
    
    // Mmap maps the output file with the given size. It unmaps the old mapping
    // if it is already mapped. It also flushes any in-heap data to the new
    // mapping.
    func (out *OutBuf) Mmap(filesize uint64) (err error) {
    	oldlen := len(out.buf)
    	if oldlen != 0 {
    		out.munmap()
    	}
    
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. src/runtime/mem_linux.go

    // prevents us from allocating more stack.
    //
    //go:nosplit
    func sysAllocOS(n uintptr) unsafe.Pointer {
    	p, err := mmap(nil, n, _PROT_READ|_PROT_WRITE, _MAP_ANON|_MAP_PRIVATE, -1, 0)
    	if err != 0 {
    		if err == _EACCES {
    			print("runtime: mmap: access denied\n")
    			exit(2)
    		}
    		if err == _EAGAIN {
    			print("runtime: mmap: too much locked memory (check 'ulimit -l').\n")
    			exit(2)
    		}
    		return nil
    	}
    	return p
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/outbuf_nommap.go

    //go:build !unix && !windows
    
    package ld
    
    // Mmap allocates an in-heap output buffer with the given size. It copies
    // any old data (if any) to the new buffer.
    func (out *OutBuf) Mmap(filesize uint64) error {
    	// We need space to put all the symbols before we apply relocations.
    	oldheap := out.heap
    	if filesize < uint64(len(oldheap)) {
    		panic("mmap size too small")
    	}
    	out.heap = make([]byte, filesize)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 660 bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/telemetry/internal/mmap/mmap_other.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build (js && wasm) || wasip1 || plan9 || (solaris && !go1.20)
    
    package mmap
    
    import (
    	"io"
    	"os"
    )
    
    // mmapFile on other systems doesn't mmap the file. It just reads everything.
    func mmapFile(f *os.File, _ *Data) (Data, error) {
    	b, err := io.ReadAll(f)
    	if err != nil {
    		return Data{}, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 21:40:49 UTC 2024
    - 540 bytes
    - Viewed (0)
Back to top