null
107108109110111112113114115116117
private static ByteBuffer allocate(int idx) { Stack stack = bufferStacks[idx]; ByteBuffer buf; synchronized (stack) { buf = (ByteBuffer) stack.pop(); if (buf == null) { buf = createBuffer(bufferStackSizes[idx]); } }
203204205206207208209210211212213
Stack stack = bufferStacks[ idx ]; java.nio.ByteBuffer buf; synchronized( stack ) { buf = ( java.nio.ByteBuffer ) stack.pop(); } if( buf == null ) { buf = direct ? java.nio.ByteBuffer.allocateDirect( MINIMUM_CAPACITY << idx ) :
116117118119120121122123124125126
Stack stack = bufferStacks[ idx ]; ByteBuffer buf; synchronized( stack ) { buf = ( ByteBuffer ) stack.pop(); if( buf == null ) { buf = createBuffer( bufferStackSizes[ idx ] ); } }
117118119120121122123124125126127
195196197198199200201202203204205
431432433434435436437438439440441
LeaderFollowersThreadPool.Worker worker; do { synchronized( followers ) { worker = ( LeaderFollowersThreadPool.Worker ) followers.pop(); } if( worker == null ) { // Increase the number of threads if we