Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 143 for allocates (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/bufio/bufio_test.go

    		if s := buf.String(); s != "\uFFFD" {
    			t.Errorf("WriteRune(%d) wrote %q, not replacement character", r, s)
    		}
    	}
    }
    
    func TestReadStringAllocs(t *testing.T) {
    	if asan.Enabled {
    		t.Skip("test allocates more with -asan; see #70079")
    	}
    	r := strings.NewReader("       foo       foo        42        42        42        42        42        42        42        42       4.2       4.2       4.2       4.2\n")
    	buf := NewReader(r)
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Feb 07 01:08:54 GMT 2025
    - 51.6K bytes
    - Click Count (0)
  2. src/bytes/bytes_test.go

    			old = []byte(tt.old)
    			new = []byte(tt.new)
    		)
    		if !asan.Enabled {
    			allocs := testing.AllocsPerRun(10, func() { Replace(in, old, new, tt.n) })
    			if allocs > 1 {
    				t.Errorf("Replace(%q, %q, %q, %d) allocates %.2f objects", tt.in, tt.old, tt.new, tt.n, allocs)
    			}
    		}
    		in = append(in, "<spare>"...)
    		in = in[:len(tt.in)]
    		out := Replace(in, old, new, tt.n)
    		if s := string(out); s != tt.out {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 23 23:54:14 GMT 2025
    - 62.9K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/rdma/RdmaBufferManager.java

            this.totalAllocated = new AtomicLong();
            this.totalReleased = new AtomicLong();
    
            // Pre-allocate buffer pool
            initializeBufferPool();
        }
    
        /**
         * Initialize the buffer pool with pre-allocated regions
         */
        private void initializeBufferPool() {
            // Allocate send buffers
            for (int i = 0; i < initialSendBuffers; i++) {
                try {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

                }
            };
    
            // When
            BufferCache.getBuffers(req, rsp);
    
            // Then
            assertNotNull(req.txn_buf, "Request buffer should be allocated");
            assertNotNull(rsp.txn_buf, "Response buffer should be allocated");
            assertEquals(SmbComTransaction.TRANSACTION_BUF_SIZE, req.txn_buf.length, "Request buffer should have correct size");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java

            // Allocate regions larger than pool buffer size to force new allocations
            RdmaMemoryRegion region1 = bufferManager.getSendRegion(131072); // 128KB > 64KB pool size
            RdmaMemoryRegion region2 = bufferManager.getSendRegion(131072); // Another large allocation
    
            assertTrue(bufferManager.getTotalAllocated() > initialAllocated, "Total allocated should increase");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

                assertNotNull(sendBuffer, "Send buffer should be allocated");
                assertTrue(sendBuffer.getSize() >= 8192, "Send buffer should be at least 8KB");
    
                RdmaMemoryRegion recvBuffer = bufferManager.getReceiveRegion();
                assertNotNull(recvBuffer, "Receive buffer should be allocated");
                assertTrue(recvBuffer.getSize() > 0, "Receive buffer should have positive size");
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 13.8K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

        when {
          logger.isLoggable(Level.FINE) -> Throwable(closer) // These are expensive to allocate.
          else -> null
        }
    
      open fun logCloseableLeak(
        message: String,
        stackTrace: Any?,
      ) {
        var logMessage = message
        if (stackTrace == null) {
          logMessage += " To see where this was allocated, set the OkHttpClient logger level to " +
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jul 28 07:33:49 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  8. src/bytes/buffer.go

    // total space allocated for the buffer's data.
    func (b *Buffer) Cap() int { return cap(b.buf) }
    
    // Available returns how many bytes are unused in the buffer.
    func (b *Buffer) Available() int { return cap(b.buf) - len(b.buf) }
    
    // Truncate discards all but the first n unread bytes from the buffer
    // but continues to use the same allocated storage.
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Nov 14 19:01:17 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  9. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

       * array is that of the specified array. The returned array elements are in no particular order.
       * If the queue fits in the specified array, it is returned therein. Otherwise, a new array is
       * allocated with the runtime type of the specified array and the size of this queue.
       *
       * <p>If this queue fits in the specified array with room to spare (i.e., the array has more
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  10. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       * type of the returned array is that of the specified array. If the queue fits in the specified
       * array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the
       * specified array and the size of this queue.
       *
       * <p>If this queue fits in the specified array with room to spare (i.e., the array has more
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 22.4K bytes
    - Click Count (0)
Back to Top