Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for allocated (0.87 sec)

  1. 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 {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  2. 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");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/pac/PacUnicodeString.java

        private final int pointer;
    
        /**
         * Constructs a new PacUnicodeString instance.
         *
         * @param length the actual length of the string in bytes
         * @param maxLength the maximum allocated length for the string in bytes
         * @param pointer the pointer/offset to the string data
         */
        public PacUnicodeString(final short length, final short maxLength, final int pointer) {
            this.length = length;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  4. 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");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/BufferCacheImplTest.java

            verifyNoMoreInteractions(cfg);
    
            // When cache is empty, getBuffer allocates a new buffer with configured size
            byte[] buf = impl.getBuffer();
            assertNotNull(buf, "getBuffer should never return null");
            assertEquals(5, buf.length, "Newly allocated buffer length should match config maximum size");
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. 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");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/ResourceManager.java

                cleanupExecutor.shutdownNow();
                Thread.currentThread().interrupt();
            }
    
            // Log final statistics
            log.info("ResourceManager shutdown complete. Total allocated: {}, released: {}, leaks: {}, force cleaned: {}", totalAllocated.get(),
                    totalReleased.get(), totalLeaks.get(), cleaned);
        }
    
        /**
         * Create a managed resource wrapper
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

         */
        @Override
        public Object evaluate(final String template, final Map<String, Object> paramMap) {
            // Null-safety: return null for blank templates
            // Early return is safe here as no resources have been allocated yet
            if (StringUtil.isBlank(template)) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Template is blank, returning null");
                }
                return null;
            }
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/rpc.java

                // Default constructor
            }
    
            /**
             * The actual length of the string in bytes.
             */
            public short length;
            /**
             * The maximum allocated length of the string in bytes.
             */
            public short maximum_length;
            /**
             * The buffer containing the Unicode characters.
             */
            public short[] buffer;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java

         *
         * @return active connection count
         */
        public long getConnectionsActive() {
            return connectionsActive.get();
        }
    
        /**
         * Get total number of memory regions allocated
         *
         * @return memory region count
         */
        public long getMemoryRegionsAllocated() {
            return memoryRegionsAllocated.get();
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top