Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 130 for memhash (0.32 sec)

  1. src/internal/concurrent/hashtriemap_test.go

    	testHashTrieMap(t, func() *HashTrieMap[string, int] {
    		// Stub out the good hash function with a terrible one.
    		// Everything should still work as expected.
    		m := NewHashTrieMap[string, int]()
    		m.keyHash = func(_ unsafe.Pointer, _ uintptr) uintptr {
    			return 0
    		}
    		return m
    	})
    }
    
    func testHashTrieMap(t *testing.T, newMap func() *HashTrieMap[string, int]) {
    	t.Run("LoadEmpty", func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/ZipHasher.java

                if (fallbackZipHasher != null) {
                    return fallbackZipHasher.hashZipContents(zipFileSnapshot);
                }
                return zipFileSnapshot.getHash();
            }
        }
    
        private List<FileSystemLocationFingerprint> fingerprintZipEntries(String zipFile) throws IOException {
            try (ZipInput input = FileZipInput.create(new File(zipFile))) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/IncrementalNativeCompiler.java

                for (File sourceFile : spec.getSourceFiles()) {
                    SourceFileState state = incrementalCompilation.getFinalState().getState(sourceFile);
                    final HashCode hash = state.getHash();
                    List<String> headers = new ArrayList<>();
                    for (IncludeFileEdge edge : state.getEdges()) {
                        if (hash.equals(edge.getIncludedBy())) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/AbiExtractingClasspathResourceHasherTest.groovy

            1 * fileSnapshot.getAbsolutePath() >> file.absolutePath
            1 * apiClassExtractor.extractApiClassFrom(_) >> { args -> throw new Exception("Boom!") }
    
            and:
            1 * fileSnapshot.getHash()
    
            and:
            noExceptionThrown()
        }
    
        @Issue("https://github.com/gradle/gradle/issues/20398")
        def "falls back to full zip entry hash when abi extraction fails for a zip entry"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/AbiExtractingClasspathResourceHasher.java

                        LOGGER.debug("Malformed class file '{}' found on compile classpath. Falling back to full file hash instead of ABI hashing.", fileSnapshot.getName(), e);
                        return fileSnapshot.getHash();
                    }
                }
    
                @Nullable
                @Override
                HashCode handle(ZipEntryContent zipEntry, IoFunction<ZipEntryContent, HashCode> function) {
                    try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/DirectorySnapshot.java

            }
            return Optional.of(new DirectorySnapshot(targetPath, name, getAccessType(), contentHash, childMapFromSorted(relocatedChildren.build())));
        }
    
        @Override
        public HashCode getHash() {
            return contentHash;
        }
    
        @Override
        public FileType getType() {
            return FileType.Directory;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/AssignImmutableWorkspaceStep.java

            return outputSnapshots.entrySet().stream()
                .flatMap(entry ->
                    entry.getValue().roots()
                        .map(locationSnapshot -> immutableEntry(entry.getKey(), locationSnapshot.getHash())))
                .collect(toImmutableListMultimap(
                    Map.Entry::getKey,
                    Map.Entry::getValue
                ));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 19 16:44:11 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  8. src/hash/maphash/maphash_test.go

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package maphash
    
    import (
    	"bytes"
    	"fmt"
    	"hash"
    	"testing"
    )
    
    func TestUnseededHash(t *testing.T) {
    	m := map[uint64]struct{}{}
    	for i := 0; i < 1000; i++ {
    		h := new(Hash)
    		m[h.Sum64()] = struct{}{}
    	}
    	if len(m) < 900 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  9. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingResourceHasherTest.groovy

        }
    
        RegularFileSnapshot snapshot(File file, FileType fileType) {
            return Mock(RegularFileSnapshot) {
                getAbsolutePath() >> file.absolutePath
                getType() >> fileType
                getHash() >> Hashing.hashFile(file)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/vfs/impl/DefaultFileSystemAccess.java

                        default:
                            throw new IllegalArgumentException("Unknown file type: " + fileMetadata.getType());
                    }
                }))
                .map(FileSystemLocationSnapshot::getHash);
        }
    
        @Override
        public Optional<FileSystemLocationSnapshot> read(String location, SnapshottingFilter filter) {
            if (filter.isEmpty()) {
                return Optional.of(read(location));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:35 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top