Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for getMCache (0.51 sec)

  1. src/runtime/mcache.go

    		mheap_.cachealloc.free(unsafe.Pointer(c))
    		unlock(&mheap_.lock)
    	})
    }
    
    // getMCache is a convenience function which tries to obtain an mcache.
    //
    // Returns nil if we're not bootstrapping or we don't have a P. The caller's
    // P must not change, so we must be in a non-preemptible state.
    func getMCache(mp *m) *mcache {
    	// Grab the mcache, since that's where stats live.
    	pp := mp.p.ptr()
    	var c *mcache
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/inl_test.go

    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. src/runtime/malloc.go

    		throw("malloc deadlock")
    	}
    	if mp.gsignal == getg() {
    		throw("malloc during signal")
    	}
    	mp.mallocing = 1
    
    	shouldhelpgc := false
    	dataSize := userSize
    	c := getMCache(mp)
    	if c == nil {
    		throw("mallocgc called without a P or outside bootstrapping")
    	}
    	var span *mspan
    	var header **_type
    	var x unsafe.Pointer
    	noscan := typ == nil || !typ.Pointers()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  4. src/runtime/arena.go

    	}
    	// Set up heap bitmap and do extra accounting.
    	if typ.Pointers() {
    		if cap >= 0 {
    			userArenaHeapBitsSetSliceType(typ, cap, ptr, s)
    		} else {
    			userArenaHeapBitsSetType(typ, ptr, s)
    		}
    		c := getMCache(mp)
    		if c == nil {
    			throw("mallocgc called without a P or outside bootstrapping")
    		}
    		if cap > 0 {
    			c.scanAlloc += size - (typ.Size_ - typ.PtrBytes)
    		} else {
    			c.scanAlloc += typ.PtrBytes
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/dynamicversions/DefaultModuleVersionsCache.java

        }
    
        @Override
        protected void store(ModuleAtRepositoryKey key, ModuleVersionsCacheEntry entry) {
            getCache().put(key, entry);
        }
    
        @Override
        protected ModuleVersionsCacheEntry get(ModuleAtRepositoryKey key) {
            return getCache().getIfPresent(key);
        }
    
        private static class ModuleKeySerializer extends AbstractSerializer<ModuleAtRepositoryKey> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultMultiProcessSafeIndexedCache.java

            final BTreePersistentIndexedCache<K, V> cache = getCache();
            // Use writeFile because the cache can internally recover from datafile
            // corruption, so we don't care at this level if it's corrupt
            fileAccess.writeFile(() -> cache.put(key, value));
        }
    
        @Override
        public void remove(final K key) {
            final BTreePersistentIndexedCache<K, V> cache = getCache();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/CrossTaskGroovyJavaJointIncrementalCompilationIntegrationTest.groovy

            sourceWithFileSuffixForProject("java", "impl", "class C1 extends B1 {}")
            sourceWithFileSuffixForProject("java", "impl", "class D1 extends C1 { static boolean getCache() { return true; } }")
            File e1Class = sourceWithFileSuffixForProject("groovy", "impl", "class E1 { boolean isCacheEnabled = D1.cache }")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/PersistentModuleMetadataCache.java

            this.artifactCacheLockingManager = cacheAccessCoordinator;
        }
    
        private IndexedCache<ModuleComponentAtRepositoryKey, ModuleMetadataCacheEntry> getCache() {
            if (cache == null) {
                cache = initCache();
            }
            return cache;
        }
    
        private IndexedCache<ModuleComponentAtRepositoryKey, ModuleMetadataCacheEntry> initCache() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/artifacts/DefaultModuleArtifactsCache.java

        }
    
        @Override
        protected void store(ArtifactsAtRepositoryKey key, AbstractArtifactsCache.ModuleArtifactsCacheEntry entry) {
            getCache().put(key, entry);
        }
    
        @Override
        protected ModuleArtifactsCacheEntry get(ArtifactsAtRepositoryKey key) {
            return getCache().getIfPresent(key);
        }
    
        private static class ModuleArtifactsKeySerializer extends AbstractSerializer<ArtifactsAtRepositoryKey> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  10. operator/pkg/cache/cache.go

    	objectCachesMu.Lock()
    	defer objectCachesMu.Unlock()
    	objectCaches = make(map[string]*ObjectCache)
    	metrics.CacheFlushTotal.Increment()
    }
    
    // GetCache returns the object Cache for the given name, creating one in the global Cache if needed.
    func GetCache(name string) *ObjectCache {
    	objectCachesMu.Lock()
    	defer objectCachesMu.Unlock()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 06 13:12:49 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top