Home
last modified time | relevance | path

Searched refs:TEMP_BUF_POOL_SIZE (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/fs/
DNativeBuffers.java39 private static final int TEMP_BUF_POOL_SIZE = 3; field in NativeBuffers
60 for (int i=0; i<TEMP_BUF_POOL_SIZE; i++) { in getNativeBufferFromCache()
94 buffers = new NativeBuffer[TEMP_BUF_POOL_SIZE]; in releaseNativeBuffer()
100 for (int i=0; i<TEMP_BUF_POOL_SIZE; i++) { in releaseNativeBuffer()
107 for (int i=0; i<TEMP_BUF_POOL_SIZE; i++) { in releaseNativeBuffer()
/libcore/ojluni/src/main/java/sun/nio/ch/
DUtil.java43 private static final int TEMP_BUF_POOL_SIZE = IOUtil.IOV_MAX; field in Util
118 return (i + 1) % TEMP_BUF_POOL_SIZE; in next()
122 buffers = new ByteBuffer[TEMP_BUF_POOL_SIZE]; in BufferCache()
173 if (count >= TEMP_BUF_POOL_SIZE) { in offerFirst()
176 start = (start + TEMP_BUF_POOL_SIZE - 1) % TEMP_BUF_POOL_SIZE; in offerFirst()
187 if (count >= TEMP_BUF_POOL_SIZE) { in offerLast()
190 int next = (start + count) % TEMP_BUF_POOL_SIZE; in offerLast()