Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 48 for makemap64 (0.15 sec)

  1. test/fixedbugs/issue37716.go

    type K struct {
    	a, b int32 // these get merged by the compiler into a single field, something typehash doesn't do
    	c    float64
    }
    
    func main() {
    	k := K{a: 1, b: 2, c: 3}
    
    	// Make a reflect map.
    	m := reflect.MakeMap(reflect.MapOf(reflect.TypeOf(K{}), reflect.TypeOf(true)))
    	m.SetMapIndex(reflect.ValueOf(k), reflect.ValueOf(true))
    
    	// The binary must not contain the type map[K]bool anywhere, or reflect.MapOf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 10 16:26:59 UTC 2020
    - 872 bytes
    - Viewed (0)
  2. src/runtime/race/testdata/regression_test.go

    	c := make(chan bool)
    	go func() {
    		_ = l
    		c <- true
    	}()
    	l = LogImpl{}
    	<-c
    	return
    }
    
    var _ LogImpl = NewLog()
    
    func MakeMap() map[int]int {
    	return make(map[int]int)
    }
    
    func InstrumentMapLen() {
    	_ = len(MakeMap())
    }
    
    func InstrumentMapLen2() {
    	m := make(map[int]map[int]int)
    	_ = len(m[0])
    }
    
    func InstrumentMapLen3() {
    	m := make(map[int]*map[int]int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 03 02:01:34 UTC 2015
    - 2.7K bytes
    - Viewed (0)
  3. test/live2.go

    func printnl()
    
    //go:noescape
    func useT40(*T40)
    
    type T40 struct {
    	m map[int]int
    }
    
    func newT40() *T40 {
    	ret := T40{}
    	ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$"
    	return &ret
    }
    
    func bad40() {
    	t := newT40() // ERROR "stack object ret T40$" "stack object .autotmp_[0-9]+ runtime.hmap$"
    	printnl()     // ERROR "live at call to printnl: ret$"
    	useT40(t)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 23:29:33 UTC 2023
    - 953 bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/MapMaker.java

     *
     * <p>Usage example:
     *
     * <pre>{@code
     * ConcurrentMap<Request, Stopwatch> timers = new MapMaker()
     *     .concurrencyLevel(4)
     *     .weakKeys()
     *     .makeMap();
     * }</pre>
     *
     * <p>These features are all optional; {@code new MapMaker().makeMap()} returns a valid concurrent
     * map that behaves similarly to a {@link ConcurrentHashMap}.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java

        // GWT technically only supports concurrencyLevel == 1, but we silently
        // ignore other positive values.
        return this;
      }
    
      public <K, V> ConcurrentMap<K, V> makeMap() {
        return new ConcurrentHashMap<K, V>(initialCapacity);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMaker.java

     *
     * <p>Usage example:
     *
     * <pre>{@code
     * ConcurrentMap<Request, Stopwatch> timers = new MapMaker()
     *     .concurrencyLevel(4)
     *     .weakKeys()
     *     .makeMap();
     * }</pre>
     *
     * <p>These features are all optional; {@code new MapMaker().makeMap()} returns a valid concurrent
     * map that behaves similarly to a {@link ConcurrentHashMap}.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            checkState(newMap instanceof MapMakerInternalMap);
            newMap.putAll(map);
            return newMap;
          }
        },
        MapMakerStrongKeysWeakValues {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            ConcurrentMap<K, V> newMap = new MapMaker().weakValues().makeMap();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 04 04:06:35 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testplugin/testdata/issue44956/main.go

    // Issue 44956: writable static temp is not exported correctly.
    // In the test below, package base is
    //
    //     X = &map{...}
    //
    // which compiles to
    //
    //     X = &stmp           // static
    //     stmp = makemap(...) // in init function
    //
    // plugin1 and plugin2 both import base. plugin1 doesn't use
    // base.X, so that symbol is deadcoded in plugin1.
    //
    // plugin1 is loaded first. base.init runs at that point, which
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/client-services/src/main/java/org/gradle/internal/daemon/client/serialization/ClasspathInferer.java

        private final Lock lock = new ReentrantLock();
        private final Map<Class<?>, Collection<URI>> classPathCache;
    
        public ClasspathInferer() {
            this.classPathCache = new MapMaker().weakKeys().makeMap();
        }
    
        public void getClassPathFor(Class<?> targetClass, Collection<URI> dest) {
            lock.lock();
            try {
                Collection<URI> classPath = classPathCache.get(targetClass);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:53:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. test/escape2n.go

    }
    
    func makemap0() {
    	m := make(map[int]int) // ERROR "make\(map\[int\]int\) does not escape$"
    	m[0] = 0
    	m[1]++
    	delete(m, 1)
    	sink = m[0] // ERROR "m\[0\] escapes to heap$"
    }
    
    func makemap1() map[int]int {
    	return make(map[int]int) // ERROR "make\(map\[int\]int\) escapes to heap$"
    }
    
    func makemap2() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
Back to top