Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 52 for expand (5.03 sec)

  1. android/guava/src/com/google/common/cache/Striped64.java

              try {
                if (cells == as) { // Expand table unless stale
                  Cell[] rs = new Cell[n << 1];
                  for (int i = 0; i < n; ++i) rs[i] = as[i];
                  cells = rs;
                }
              } finally {
                busy = 0;
              }
              collide = false;
              continue; // Retry with expanded table
            }
            h ^= h << 13; // Rehash
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

      /**
       * Given a set of features, add to it all the features directly or indirectly implied by any of
       * them, and return it.
       *
       * @param features the set of features to expand
       * @return the same set of features, expanded with all implied features
       */
      @CanIgnoreReturnValue
      public static Set<Feature<?>> addImpliedFeatures(Set<Feature<?>> features) {
        Queue<Feature<?>> queue = new ArrayDeque<>(features);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 12.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        }.start();
    
        // give the second get a chance to run; it is okay for this to be racy
        // as the end result should be the same either way
        thirdSignal.await();
        Thread.yield();
    
        // Expand!
        CacheTesting.forceExpandSegment(cache, key);
    
        // start another waiting thread
        new Thread() {
          @Override
          public void run() {
            fourthSignal.countDown();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/Striped64.java

              try {
                if (cells == as) { // Expand table unless stale
                  Cell[] rs = new Cell[n << 1];
                  for (int i = 0; i < n; ++i) rs[i] = as[i];
                  cells = rs;
                }
              } finally {
                busy = 0;
              }
              collide = false;
              continue; // Retry with expanded table
            }
            h ^= h << 13; // Rehash
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/InetAddresses.java

            && ipString.charAt(ipString.length() - 2) != IPV6_DELIMITER) {
          return null; // :$ requires ::$
        }
        if (hasSkip && partsSkipped <= 0) {
          return null; // :: must expand to at least one '0'
        }
        if (!hasSkip && delimiterCount + 1 != IPV6_PART_COUNT) {
          return null; // Incorrect number of parts
        }
    
        ByteBuffer rawBytes = ByteBuffer.allocate(2 * IPV6_PART_COUNT);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  6. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        oldValueRef.clear();
        assertNull(segment.put(key, hash, newValue, true));
        assertEquals(1, segment.count);
        assertSame(newValue, segment.get(key, hash));
      }
    
      public void testSegmentPut_expand() {
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().concurrencyLevel(1).initialCapacity(1));
        Segment<Object, Object> segment = map.segments[0];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        oldValueRef.clear();
        assertNull(segment.put(key, hash, newValue, true));
        assertEquals(1, segment.count);
        assertSame(newValue, segment.get(key, hash));
      }
    
      public void testSegmentPut_expand() {
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().concurrencyLevel(1).initialCapacity(1));
        Segment<Object, Object> segment = map.segments[0];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        }.start();
    
        // give the second get a chance to run; it is okay for this to be racy
        // as the end result should be the same either way
        thirdSignal.await();
        Thread.yield();
    
        // Expand!
        CacheTesting.forceExpandSegment(cache, key);
    
        // start another waiting thread
        new Thread() {
          @Override
          public void run() {
            fourthSignal.countDown();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/ByteStreams.java

          Java8Compatibility.clear(buf);
        }
        return total;
      }
    
      /** Max array length on JVM. */
      private static final int MAX_ARRAY_LEN = Integer.MAX_VALUE - 8;
    
      /** Large enough to never need to expand, given the geometric progression of buffer sizes. */
      private static final int TO_BYTE_ARRAY_DEQUE_SIZE = 20;
    
      /**
       * Returns a byte array containing the bytes from the buffers already in {@code bufs} (which have
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

            evictEntries(newEntry);
            return null;
          } finally {
            unlock();
            postWriteCleanup();
          }
        }
    
        /** Expands the table if possible. */
        @GuardedBy("this")
        void expand() {
          AtomicReferenceArray<ReferenceEntry<K, V>> oldTable = table;
          int oldCapacity = oldTable.length();
          if (oldCapacity >= MAXIMUM_CAPACITY) {
            return;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
Back to top