Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for GC (0.12 sec)

  1. android/guava/src/com/google/common/util/concurrent/Monitor.java

            if (p == guard) {
              if (pred == null) {
                activeGuards = p.next;
              } else {
                pred.next = p.next;
              }
              p.next = null; // help GC
              break;
            }
          }
        }
      }
    
      /*
       * Methods that loop waiting on a guard's condition until the guard is satisfied, while recording
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        suite.addTest(
            ConcurrentMapTestSuiteBuilder.using(
                    new TestStringCacheGenerator(createCacheBuilder().weakKeys()))
                .named("LocalCache with weakKeys") // keys are string literals and won't be GC'd
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.GENERAL_PURPOSE,
                    CollectionFeature.SUPPORTS_ITERATOR_REMOVE)
                .createTestSuite());
    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)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        suite.addTest(
            ConcurrentMapTestSuiteBuilder.using(
                    new TestStringCacheGenerator(createCacheBuilder().weakKeys()))
                .named("LocalCache with weakKeys") // keys are string literals and won't be GC'd
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.GENERAL_PURPOSE,
                    CollectionFeature.SUPPORTS_ITERATOR_REMOVE)
                .createTestSuite());
    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)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      //         Test s = suite();
      //         for (int i = 0; i < iters; ++i) {
      //             junit.textui.TestRunner.run(s);
      //             System.gc();
      //             System.runFinalization();
      //         }
      //         System.exit(0);
      //     }
    
      //     public static TestSuite newTestSuite(Object... suiteOrClasses) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

       * ThreadLocal is usually implemented with a WeakReference, which can have negative performance
       * properties; for example, calling WeakReference.get() on Android will block during an
       * otherwise-concurrent GC cycle.
       */
      private static final class TaskNonReentrantExecutor extends AtomicReference<RunningState>
          implements Executor, Runnable {
    
        /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

          RunnableExecutorPair list;
          synchronized (this) {
            if (executed) {
              return;
            }
            executed = true;
            list = runnables;
            runnables = null; // allow GC to free listeners even if this stays around for a while.
          }
          while (list != null) {
            executeListener(list.runnable, list.executor);
            list = list.next;
          }
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactHashMap.java

       * world. Figure out what sort of space-time tradeoff we're actually going to get here with the
       * *Map variants. This class is particularly hard to benchmark, because the benefit is not only in
       * less allocation, but also having the GC do less work to scan the heap because of fewer
       * references, which is particularly hard to quantify.
       */
    
      /** Creates an empty {@code CompactHashMap} instance. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 35.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        executor.shutdown();
        assertThat(executor.awaitTermination(10, TimeUnit.SECONDS)).isTrue();
        assertThat(getDone(future2)).isFalse();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      @J2ObjCIncompatible // gc
      @AndroidIncompatible
      public void testCancellationWithReferencedObject() throws Exception {
        Object toBeGCed = new Object();
        WeakReference<Object> ref = new WeakReference<>(toBeGCed);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        executor.shutdown();
        assertThat(executor.awaitTermination(10, TimeUnit.SECONDS)).isTrue();
        assertThat(getDone(future2)).isFalse();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      @J2ObjCIncompatible // gc
      @AndroidIncompatible
      public void testCancellationWithReferencedObject() throws Exception {
        Object toBeGCed = new Object();
        WeakReference<Object> ref = new WeakReference<>(toBeGCed);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompactHashMap.java

       * world. Figure out what sort of space-time tradeoff we're actually going to get here with the
       * *Map variants. This class is particularly hard to benchmark, because the benefit is not only in
       * less allocation, but also having the GC do less work to scan the heap because of fewer
       * references, which is particularly hard to quantify.
       */
    
      /** Creates an empty {@code CompactHashMap} instance. */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
Back to top