Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 208 for pmap (0.12 sec)

  1. src/sync/map.go

    // The zero Map is empty and ready for use. A Map must not be copied after first use.
    //
    // In the terminology of [the Go memory model], Map arranges that a write operation
    // “synchronizes before” any read operation that observes the effect of the write, where
    // read and write operations are defined as follows.
    // [Map.Load], [Map.LoadAndDelete], [Map.LoadOrStore], [Map.Swap], [Map.CompareAndSwap],
    // and [Map.CompareAndDelete] are read operations;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/dwarfgen/dwinl.go

    	// produced by the inliner will wind up in the vmap[0] entry.
    	vmap := make(map[int32][]*dwarf.Var)
    
    	// Now walk the dwarf vars and partition them based on whether they
    	// were produced by the inliner (dwv.InlIndex > 0) or were original
    	// vars/params from the function (dwv.InlIndex == 0).
    	for _, dwv := range dwVars {
    
    		vmap[dwv.InlIndex] = append(vmap[dwv.InlIndex], dwv)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. src/internal/abi/map.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package abi
    
    // Map constants common to several packages
    // runtime/runtime-gdb.py:MapTypePrinter contains its own copy
    const (
    	// Maximum number of key/elem pairs a bucket can hold.
    	MapBucketCountBits = 3 // log2 of number of elements in a bucket.
    	MapBucketCount     = 1 << MapBucketCountBits
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 20:09:01 UTC 2024
    - 719 bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/runtime/cgo_mmap.go

    //go:linkname _cgo_munmap _cgo_munmap
    var _cgo_munmap unsafe.Pointer
    
    // mmap is used to route the mmap system call through C code when using cgo, to
    // support sanitizer interceptors. Don't allow stack splits, since this function
    // (used by sysAlloc) is called in a lot of low-level parts of the runtime and
    // callers often assume it won't acquire any locks.
    //
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top