Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 184 for filelink (0.13 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/LockOnDemandCrossProcessCacheAccess.java

                    try {
                        if (initAction.requiresInitialization(fileLock)) {
                            fileLock.writeFile(() -> initAction.initialize(fileLock));
                        }
                        onOpen.accept(fileLock);
                    } catch (Exception e) {
                        fileLock.close();
                        fileLock = null;
                        throw UncheckedException.throwAsUncheckedException(e);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CacheInitializationAction.java

         * The lock is not released between calling {@link #requiresInitialization(FileLock)} and this method.
         */
        void initialize(FileLock fileLock);
    
        CacheInitializationAction NO_INIT_REQUIRED = new CacheInitializationAction() {
            @Override
            public boolean requiresInitialization(FileLock fileLock) {
                return false;
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/FixedExclusiveModeCrossProcessCacheAccessTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.cache.internal
    
    import org.gradle.cache.FileLock
    import org.gradle.cache.FileLockManager
    import org.gradle.cache.internal.filelock.DefaultLockOptions
    import org.gradle.test.fixtures.file.TestFile
    import spock.lang.Specification
    
    import java.util.function.Consumer
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCoordinator.java

        }
    
        /**
         * Called just after the file lock has been acquired.
         */
        private void afterLockAcquire(FileLock fileLock) {
            assert this.fileLock == null;
            this.fileLock = fileLock;
            this.stateAtOpen = fileLock.getState();
    
            withOwnershipNow(() -> {
                for (IndexedCacheEntry<?, ?> entry : caches.values()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 01 12:21:15 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/LockOnDemandCrossProcessCacheAccessTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.cache.internal
    
    import org.gradle.cache.FileLock
    import org.gradle.cache.FileLockManager
    import org.gradle.cache.FileLockReleasedSignal
    import org.gradle.cache.LockOptions
    import org.gradle.cache.internal.filelock.DefaultLockOptions
    import org.gradle.test.fixtures.concurrent.ConcurrentSpec
    import org.gradle.test.fixtures.file.TestFile
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/integTest/groovy/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccessIntegrationTest.groovy

                def count = 0
    
                boolean requiresInitialization(FileLock fileLock) {
                    assert fileLock != null
                    count++
                    println "Checking initialized $count"
                    return count < 4
                }
    
                void initialize(FileLock fileLock) {}
            }
            def lockOptions = DefaultLockOptions.mode(FileLockManager.LockMode.Shared)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:52:52 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/InMemoryDecoratedCache.java

        private final Cache<Object, Object> inMemoryCache;
        private final String cacheId;
        private final AtomicReference<FileLock.State> fileLockStateReference;
    
        public InMemoryDecoratedCache(MultiProcessSafeAsyncPersistentIndexedCache<K, V> delegate, Cache<Object, Object> inMemoryCache, String cacheId, AtomicReference<FileLock.State> fileLockStateReference) {
            this.delegate = delegate;
            this.inMemoryCache = inMemoryCache;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. src/runtime/symtabinl_test.go

    	prevStack := "x"
    	for pc := pc1; pc < pc1+1024 && findfunc(pc) == f; pc += sys.PCQuantum {
    		stack := ""
    		u, uf := newInlineUnwinder(f, pc)
    		if file, _ := u.fileLine(uf); file == "?" {
    			// We're probably in the trailing function padding, where findfunc
    			// still returns f but there's no symbolic information. Just keep
    			// going until we definitely hit the end. If we see a "?" in the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockInfoAccess.java

            try {
                FileLock fileLock = lockFileAccess.getChannel().tryLock(infoRegionPos, INFORMATION_REGION_SIZE - infoRegionPos, shared);
                if (fileLock == null) {
                    return FileLockOutcome.LOCKED_BY_ANOTHER_PROCESS;
                } else {
                    return FileLockOutcome.acquired(fileLock);
                }
            } catch (OverlappingFileLockException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockStateAccess.java

            try {
                FileLock fileLock = lockFileAccess.getChannel().tryLock(REGION_START, stateRegionSize, shared);
                if (fileLock == null) {
                    return FileLockOutcome.LOCKED_BY_ANOTHER_PROCESS;
                } else {
                    return FileLockOutcome.acquired(fileLock);
                }
            } catch (OverlappingFileLockException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top