- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for garbage (0.07 sec)
-
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
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Oct 12 20:23:36 UTC 2022 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/util/ResourceManagerTest.java
@Timeout(value = 5, unit = TimeUnit.SECONDS) void testLeakDetection() throws InterruptedException { // Create resource that will be garbage collected without closing createLeakyResource(); // Force garbage collection System.gc(); Thread.sleep(200); // Check for leaks resourceManager.checkForLeaks();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.9K bytes - Viewed (0) -
guava/src/com/google/common/base/FinalizableReference.java
* 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 public interface FinalizableReference { /** * Invoked on a background thread after the referent has been garbage collected unless security
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.4K bytes - Viewed (0) -
android/guava/src/com/google/common/base/FinalizableReference.java
* 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 public interface FinalizableReference { /** * Invoked on a background thread after the referent has been garbage collected unless security
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.4K bytes - Viewed (0) -
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 {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/BufferCache.java
*/ package jcifs.smb1.smb1; import jcifs.smb1.Config; /** * Buffer cache implementation for SMB1 protocol operations. * Manages a pool of byte buffers to reduce garbage collection overhead. * * Performance optimizations: * - Uses ConcurrentLinkedQueue for O(1) operations * - Lock-free operations for better concurrency * - Proper buffer validation and limits */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4.2K bytes - Viewed (0) -
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(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 8.5K bytes - Viewed (0) -
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(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 8.5K bytes - Viewed (0) -
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. */ public class Finalizer implements Runnable { private static final Logger logger = Logger.getLogger(Finalizer.class.getName()); /** Name of FinalizableReference.class. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 9.3K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/RemovalNotification.java
import java.util.AbstractMap.SimpleImmutableEntry; import org.jspecify.annotations.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. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 2.5K bytes - Viewed (0)