< prev index next >

src/java.xml/share/classes/com/sun/xml/internal/stream/util/ThreadLocalBufferAllocator.java

Print this page

        

*** 33,44 **** * buffers - small (< 128 bytes), medium (<2K) and large (> 2K) as * well as three byte buffers - small, medium and large. * The local storage is activated on the return of the buffer. * The buffer returns null if it is already allocated. * ! * @author Binu.John@sun.com ! * @author Santiago.PericasGeertsen@sun.com */ public class ThreadLocalBufferAllocator { private static ThreadLocal<SoftReference<BufferAllocator>> tlba = new ThreadLocal<>(); public static BufferAllocator getBufferAllocator() { --- 33,44 ---- * buffers - small (< 128 bytes), medium (<2K) and large (> 2K) as * well as three byte buffers - small, medium and large. * The local storage is activated on the return of the buffer. * The buffer returns null if it is already allocated. * ! * @author Binu John ! * @author Santiago PericasGeertsen */ public class ThreadLocalBufferAllocator { private static ThreadLocal<SoftReference<BufferAllocator>> tlba = new ThreadLocal<>(); public static BufferAllocator getBufferAllocator() {
< prev index next >