< prev index next >

src/java.base/share/classes/java/nio/Buffer.java

Print this page

        

*** 761,772 **** public JavaNioAccess.BufferPool getDirectBufferPool() { return Bits.BUFFER_POOL; } @Override ! public ByteBuffer newDirectByteBuffer(long addr, int cap, Object ob, MemorySegmentProxy segment) { ! return new DirectByteBuffer(addr, cap, ob, segment); } @Override public ByteBuffer newHeapByteBuffer(byte[] hb, int offset, int capacity, MemorySegmentProxy segment) { return new HeapByteBuffer(hb, offset, capacity, segment); --- 761,772 ---- public JavaNioAccess.BufferPool getDirectBufferPool() { return Bits.BUFFER_POOL; } @Override ! public ByteBuffer newDirectByteBuffer(long addr, int cap, Object obj, MemorySegmentProxy segment) { ! return new DirectByteBuffer(addr, cap, obj, segment); } @Override public ByteBuffer newHeapByteBuffer(byte[] hb, int offset, int capacity, MemorySegmentProxy segment) { return new HeapByteBuffer(hb, offset, capacity, segment);
< prev index next >