Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for leaky (0.02 sec)

  1. src/test/java/jcifs/util/ResourceManagerTest.java

            // Check for leaks
            resourceManager.checkForLeaks();
    
            Map<String, Object> stats = resourceManager.getStatistics();
            // The leak counter may or may not increment depending on GC timing
            assertNotNull(stats.get("totalLeaks"));
        }
    
        private void createLeakyResource() {
            TestResource resource = new TestResource("leaky");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. cmd/leak-detect_test.go

    	"sort"
    	"strings"
    	"time"
    )
    
    const (
    	// deadline (in seconds) up to which the go routine leak detection has to be retried.
    	leakDetectDeadline = 5
    	// pause time (in milliseconds) between each snapshot at the end of the go routine leak detection.
    	leakDetectPauseTimeMs = 50
    )
    
    // LeakDetect - type with  methods for go routine leak detection.
    type LeakDetect struct {
    	relevantRoutines map[string]bool
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/ResourceManager.java

            }
        }
    
        /**
         * Check for and report resource leaks
         */
        public void checkForLeaks() {
            if (!leakDetectionEnabled) {
                return;
            }
    
            // Process phantom references to detect leaks
            Reference<?> ref;
            while ((ref = referenceQueue.poll()) != null) {
                handlePhantomReference(ref);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/BufferCacheImpl.java

         */
        @Override
        public void releaseBuffer(final byte[] buf) {
            if (buf == null) {
                return;
            }
            // better safe than sorry: prevent leaks if there is some out of bound access
            Arrays.fill(buf, (byte) 0);
            synchronized (this.cache) {
                if (this.freeBuffers < this.cache.length) {
                    for (int i = 0; i < this.cache.length; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableCollection.java

       * user-created objects that aren't accessible via this collection's methods. This is generally
       * used to determine whether {@code copyOf} implementations should make an explicit copy to avoid
       * memory leaks.
       */
      abstract boolean isPartialView();
    
      /**
       * Copies the contents of this immutable collection into the specified array at the specified
       * offset. Returns {@code offset + size()}.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableCollection.java

       * user-created objects that aren't accessible via this collection's methods. This is generally
       * used to determine whether {@code copyOf} implementations should make an explicit copy to avoid
       * memory leaks.
       */
      abstract boolean isPartialView();
    
      /**
       * Copies the contents of this immutable collection into the specified array at the specified
       * offset. Returns {@code offset + size()}.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  7. okhttp-logging-interceptor/README.md

      @Override public void log(String message) {
        Timber.tag("OkHttp").d(message);
      }
    });
    ```
    
    **Warning**: The logs generated by this interceptor when using the `HEADERS` or `BODY` levels have
    the potential to leak sensitive information such as "Authorization" or "Cookie" headers and the
    contents of request and response bodies. This data should only be logged in a controlled way or in
    a non-production environment.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

       * be otherwise.
       *
       *
       * This test leaks a response body by not closing it.
       *
       * https://github.com/square/okhttp/issues/2409
       */
      @Test
      fun connectionsAreNotReusedIfNetworkInterceptorInterferes() {
        val responsesNotClosed: MutableList<Response?> = ArrayList()
        client =
          client
            .newBuilder()
            // Since this test knowingly leaks a connection, avoid using the default shared connection
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/SmbResourceException.java

     */
    
    package jcifs;
    
    /**
     * Exception for resource-related SMB errors
     *
     * This exception is thrown when resource issues occur such as:
     * - File handle leaks
     * - Connection pool exhaustion
     * - Memory allocation failures
     * - Quota exceeded
     */
    public class SmbResourceException extends SmbException {
    
        private static final long serialVersionUID = 1L;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. cmd/dynamic-timeouts.go

    	if duration < 0 {
    		return
    	}
    	entries := int(atomic.AddInt64(&dt.entries, 1))
    	index := entries - 1
    	if index < dynamicTimeoutLogSize {
    		dt.mutex.Lock()
    		dt.log[index] = duration
    
    		// We leak entries while we copy
    		if entries == dynamicTimeoutLogSize {
    			// Make copy on stack in order to call adjust()
    			logCopy := [dynamicTimeoutLogSize]time.Duration{}
    			copy(logCopy[:], dt.log[:])
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top