Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for MakeMap (0.17 sec)

  1. test/makemap.go

    Matthew Dempsky <******@****.***> 1619131113 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 23 00:41:01 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  2. test/range.go

    		panic("fail")
    	}
    }
    
    func testmap1() {
    	s := 0
    	nmake = 0
    	for i := range makemap() {
    		s += i
    	}
    	if nmake != 1 {
    		println("range called makemap", nmake, "times")
    		panic("fail")
    	}
    	if s != 10 {
    		println("wrong sum ranging over makemap", s)
    		panic("fail")
    	}
    }
    
    func testmap2() {
    	n := 0
    	nmake = 0
    	for range makemap() {
    		n++
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 05:50:54 UTC 2017
    - 8.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/CachingClassLoader.java

        private static final Object MISSING = new Object();
        private final ConcurrentMap<String, Object> loadedClasses = new MapMaker().weakValues().makeMap();
        private final ConcurrentMap<String, Object> resources = new MapMaker().makeMap();
        private final ClassLoader parent;
    
        static {
            try {
                ClassLoader.registerAsParallelCapable();
            } catch (NoSuchMethodError ignore) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/ResolvedArtifactCaches.java

        private final Map<String, Map<ComponentArtifactIdentifier, ResolvableArtifact>> cachePerRepo = new MapMaker().makeMap();
        private final Map<String, Map<ComponentArtifactIdentifier, ResolvableArtifact>> cachePerRepoWithVerification = new MapMaker().makeMap();
    
        /**
         * For a remote repository, the only thing required is a resolved artifact cache.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top