Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 131 for slot (0.17 sec)

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

       * the capacity, it is doubled in size unless some other thread
       * holds the lock. If a hashed slot is empty, and lock is
       * available, a new Cell is created. Otherwise, if the slot
       * exists, a CAS is tried.  Retries proceed by "double hashing",
       * using a secondary hash (Marsaglia XorShift) to try to find a
       * free slot.
       *
       * The table size is capped because, when there are more threads
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/Striped64.java

       * the capacity, it is doubled in size unless some other thread
       * holds the lock. If a hashed slot is empty, and lock is
       * available, a new Cell is created. Otherwise, if the slot
       * exists, a CAS is tried.  Retries proceed by "double hashing",
       * using a secondary hash (Marsaglia XorShift) to try to find a
       * free slot.
       *
       * The table size is capped because, when there are more threads
    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)
  3. android/guava/src/com/google/common/hash/Striped64.java

       * the capacity, it is doubled in size unless some other thread
       * holds the lock. If a hashed slot is empty, and lock is
       * available, a new Cell is created. Otherwise, if the slot
       * exists, a CAS is tried.  Retries proceed by "double hashing",
       * using a secondary hash (Marsaglia XorShift) to try to find a
       * free slot.
       *
       * The table size is capped because, when there are more threads
    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)
  4. android/guava/src/com/google/common/util/concurrent/Striped.java

            // We only ever register ArrayReferences with the queue so this is always safe.
            ArrayReference<? extends L> arrayRef = (ArrayReference<? extends L>) ref;
            // Try to clear out the array slot, n.b. if we fail that is fine, in either case the
            // arrayRef will be out of the array after this step.
            locks.compareAndSet(arrayRef.index, arrayRef, null);
          }
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  5. guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

       * ordering that spends a lot of cpu.
       */
      static class ExpensiveComputation implements Function<Integer, BigInteger> {
        @Override
        public BigInteger apply(Integer from) {
          BigInteger v = BigInteger.valueOf(from);
          // Math.sin is very slow for values outside 4*pi
          // Need to take absolute value to avoid inverting the value.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/LongMathTest.java

        }
      }
    
      @AndroidIncompatible // slow
      @GwtIncompatible // TODO
      public void testSaturatedAdd() {
        for (long a : ALL_LONG_CANDIDATES) {
          for (long b : ALL_LONG_CANDIDATES) {
            assertOperationEquals(
                a, b, "s+", saturatedCast(valueOf(a).add(valueOf(b))), LongMath.saturatedAdd(a, b));
          }
        }
      }
    
      @AndroidIncompatible // slow
      @GwtIncompatible // TODO
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        }
    
        try {
          LinkedHashMultimap.create(20, -15);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      @GwtIncompatible // unreasonably slow
      public void testGetIteration() {
        new IteratorTester<Integer>(
            6,
            MODIFIABLE,
            newLinkedHashSet(asList(2, 3, 4, 7, 8)),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

        assertTrue(multimap.containsEntry("bar", 3));
        assertEquals(4, (int) entrya.getValue());
        assertEquals(3, (int) entryb.getValue());
      }
    
      @GwtIncompatible // unreasonably slow
      public void testEntriesIteration() {
        List<Entry<String, Integer>> addItems =
            ImmutableList.of(
                Maps.immutableEntry("foo", 99),
                Maps.immutableEntry("foo", 88),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

          assertThat(unsignedValue.toString()).isEqualTo(unsignedValue.bigIntegerValue().toString());
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // too slow
      public void testToStringRadix() {
        for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
          for (int l : TEST_INTS) {
            UnsignedInteger value = UnsignedInteger.fromIntBits(l);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          UnsignedLong unsignedValue = UnsignedLong.fromLongBits(value);
          assertThat(unsignedValue.toString()).isEqualTo(unsignedValue.bigIntegerValue().toString());
        }
      }
    
      @GwtIncompatible // too slow
      public void testToStringRadix() {
        for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
          for (long l : TEST_LONGS) {
            UnsignedLong value = UnsignedLong.fromLongBits(l);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top