Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for garbage (0.27 sec)

  1. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

        Striped<ReadWriteLock> striped = Striped.lazyWeakReadWriteLock(1000);
        Object key = new Object();
        Lock readLock = striped.get(key).readLock();
        WeakReference<Object> garbage = new WeakReference<>(new Object());
        GcFinalization.awaitClear(garbage);
        Lock writeLock = striped.get(key).writeLock();
        readLock.lock();
        assertFalse(writeLock.tryLock());
        readLock.unlock();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

        Striped<ReadWriteLock> striped = Striped.lazyWeakReadWriteLock(1000);
        Object key = new Object();
        Lock readLock = striped.get(key).readLock();
        WeakReference<Object> garbage = new WeakReference<>(new Object());
        GcFinalization.awaitClear(garbage);
        Lock writeLock = striped.get(key).writeLock();
        readLock.lock();
        assertFalse(writeLock.tryLock());
        readLock.unlock();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  3. src/arena/arena.go

    of Go values and free that space manually all at once, safely. The purpose
    of this functionality is to improve efficiency: manually freeing memory
    before a garbage collection delays that cycle. Less frequent cycles means
    the CPU cost of the garbage collector is incurred less frequently.
    
    This functionality in this package is mostly captured in the Arena type.
    Arenas allocate large chunks of memory for Go values, so they're likely to
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/FinalizableReference.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.errorprone.annotations.DoNotMock;
    
    /**
     * Implemented by references that have code to run after garbage collection of their referents.
     *
     * @see FinalizableReferenceQueue
     * @author Bob Lee
     * @since 2.0
     */
    @DoNotMock("Use an instance of one of the Finalizable*Reference classes")
    @J2ktIncompatible
    @GwtIncompatible
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 1.4K bytes
    - Viewed (1)
  5. guava/src/com/google/common/cache/RemovalNotification.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A notification of the removal of a single entry. The key and/or value may be null if they were
     * already garbage collected.
     *
     * <p>Like other {@code Entry} instances associated with {@code CacheBuilder}, this class holds
     * strong references to the key and value, regardless of the type of references the cache may be
     * using.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Feb 01 20:46:24 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/internal/Finalizer.java

     * loader. That way, this class doesn't prevent the main class loader from getting garbage
     * collected, and this class can detect when the main class loader has been garbage collected and
     * stop itself.
     */
    // no @ElementTypesAreNonNullByDefault for the reasons discussed above
    public class Finalizer implements Runnable {
    
      private static final Logger logger = Logger.getLogger(Finalizer.class.getName());
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/RemovalNotification.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A notification of the removal of a single entry. The key and/or value may be null if they were
     * already garbage collected.
     *
     * <p>Like other {@code Entry} instances associated with {@code CacheBuilder}, this class holds
     * strong references to the key and value, regardless of the type of references the cache may be
     * using.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 01 20:46:24 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/FinalizableReference.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.errorprone.annotations.DoNotMock;
    
    /**
     * Implemented by references that have code to run after garbage collection of their referents.
     *
     * @see FinalizableReferenceQueue
     * @author Bob Lee
     * @since 2.0
     */
    @DoNotMock("Use an instance of one of the Finalizable*Reference classes")
    @J2ktIncompatible
    @GwtIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/internal/Finalizer.java

     * loader. That way, this class doesn't prevent the main class loader from getting garbage
     * collected, and this class can detect when the main class loader has been garbage collected and
     * stop itself.
     */
    // no @ElementTypesAreNonNullByDefault for the reasons discussed above
    public class Finalizer implements Runnable {
    
      private static final Logger logger = Logger.getLogger(Finalizer.class.getName());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  10. cmd/handler-utils_test.go

    		Body:          io.NopCloser(bytes.NewReader([]byte("<>"))),
    		ContentLength: int64(len("<>")),
    	}
    
    	// Not an XML
    	badRequest := &http.Request{
    		Body:          io.NopCloser(bytes.NewReader([]byte("garbage"))),
    		ContentLength: int64(len("garbage")),
    	}
    
    	// generates the input request with XML bucket configuration set to the request body.
    	createExpectedRequest := func(req *http.Request, location string) *http.Request {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 6.1K bytes
    - Viewed (0)
Back to top