- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for getMCache (0.39 sec)
-
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) -
src/cmd/compile/internal/test/inl_test.go
"adjustpointer", "alignDown", "alignUp", "bucketMask", "bucketShift", "chanbuf", "evacuated", "fastlog2", "float64bits", "funcspdelta", "getm", "getMCache", "isDirectIface", "itabHashFunc", "nextslicecap", "noescape", "pcvalueCacheKey", "rand32", "readUnaligned32", "readUnaligned64", "releasem", "roundupsize",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 10.7K bytes - Viewed (0) -
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) -
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) -
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) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultInMemoryCacheDecoratorFactory.java
} int targetSize = cacheSizer.scaleCacheSize(maxEntriesToKeepInMemory); CacheDetails cacheDetails = getCache(cacheId, targetSize); return new InMemoryDecoratedCache<>(backingCache, cacheDetails.entries, cacheId, cacheDetails.lockState); } private CacheDetails getCache(final String cacheId, final int maxSize) { CacheDetails cacheDetails = caches.get(cacheId, () -> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:36 UTC 2024 - 6.4K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCoordinator.java
indexedCache.afterLockAcquire(stateAtOpen); } } else { entry.assertCompatibleCacheParameters(parameters); } return entry.getCache(); } finally { stateLock.unlock(); } } private <K, V> File findCacheFile(IndexedCacheParameters<K, V> parameters) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 01 12:21:15 UTC 2024 - 20.5K bytes - Viewed (0) -
src/os/example_test.go
} func ExampleUserCacheDir() { dir, dirErr := os.UserCacheDir() if dirErr == nil { dir = filepath.Join(dir, "ExampleUserCacheDir") } getCache := func(name string) ([]byte, error) { if dirErr != nil { return nil, &os.PathError{Op: "getCache", Path: name, Err: os.ErrNotExist} } return os.ReadFile(filepath.Join(dir, name)) } var mkdirOnce sync.Once
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 17:35:49 UTC 2024 - 8.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/api/internal/artifacts/ivyservice/ArtifactCacheLockingAccessCoordinatorStub.groovy
import java.util.function.Supplier class ArtifactCacheLockingAccessCoordinatorStub implements ArtifactCacheLockingAccessCoordinator { private final Map<String, IndexedCache<?, ?>> caches = [:] IndexedCache<?, ?> getCache(String cacheName) { caches[cacheName] } @Override <K, V> IndexedCache<K, V> createCache(String cacheName, Serializer<K> keySerializer, Serializer<V> valueSerializer) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 1.7K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java
request.userProperties(session.getUserProperties()); request.modelCache(DefaultModelCache.newInstance(session, false)); if (session.getCache() != null) { Map<?, ?> map = (Map) session.getCache().get(session, DefaultModelCache.class.getName()); List<String> paths = map.keySet().stream() .map(Object::toString)
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon May 13 16:34:29 UTC 2024 - 13.4K bytes - Viewed (0)