Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for removeEntryFromChain (0.16 sec)

  1. guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

    import com.google.caliper.Param;
    import com.google.common.cache.LocalCache.Segment;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Benchmark for {@code LocalCache.Segment.removeEntryFromChain}.
     *
     * @author Charles Fry
     */
    @SuppressWarnings("CheckReturnValue")
    public class ChainBenchmark {
    
      @Param({"1", "2", "3", "4", "5", "6"})
      int length;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:19:38 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

    import com.google.caliper.Param;
    import com.google.common.cache.LocalCache.Segment;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Benchmark for {@code LocalCache.Segment.removeEntryFromChain}.
     *
     * @author Charles Fry
     */
    @SuppressWarnings("CheckReturnValue")
    public class ChainBenchmark {
    
      @Param({"1", "2", "3", "4", "5", "6"})
      int length;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:19:38 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // alone
        assertNull(segment.removeEntryFromChain(entryOne, entryOne));
    
        // head
        assertSame(entryOne, segment.removeEntryFromChain(entryTwo, entryTwo));
    
        // middle
        ReferenceEntry<Object, Object> newFirst = segment.removeEntryFromChain(entryThree, entryTwo);
        assertSame(keyThree, newFirst.getKey());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // alone
        assertNull(segment.removeEntryFromChain(entryOne, entryOne));
    
        // head
        assertSame(entryOne, segment.removeEntryFromChain(entryTwo, entryTwo));
    
        // middle
        ReferenceEntry<Object, Object> newFirst = segment.removeEntryFromChain(entryThree, entryTwo);
        assertSame(keyThree, newFirst.getKey());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/LocalCache.java

          if (valueReference.isLoading()) {
            valueReference.notifyNewValue(null);
            return first;
          } else {
            return removeEntryFromChain(first, entry);
          }
        }
    
        @GuardedBy("this")
        @CheckForNull
        ReferenceEntry<K, V> removeEntryFromChain(
            ReferenceEntry<K, V> first, ReferenceEntry<K, V> entry) {
          int newCount = count;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top