Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for drainReferenceQueues (0.19 sec)

  1. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

        assertTrue(initialSize == 1 || initialSize == 2);
    
        // wait up to 5s
        byte[] filler = new byte[1024];
        for (int i = 0; i < 500; i++) {
          System.gc();
    
          CacheTesting.drainReferenceQueues(cache);
          if (cache.size() == 1) {
            break;
          }
          try {
            Thread.sleep(10);
          } catch (InterruptedException e) {
            /* ignore */
          }
          try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/LocalCache.java

          if (tryLock()) {
            try {
              drainReferenceQueues();
            } finally {
              unlock();
            }
          }
        }
    
        /**
         * Drain the key and value reference queues, cleaning up internal entries containing garbage
         * collected keys or values.
         */
        @GuardedBy("this")
        void drainReferenceQueues() {
          if (map.usesKeyReferences()) {
    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