-
Enhancement
-
Resolution: Won't Fix
-
P4
-
9
-
generic
-
generic
A DESCRIPTION OF THE REQUEST :
Use same code on heap buffers and direct buffers.
JUSTIFICATION :
Since access to heap buffers and direct buffers is now optimized via Unsafe [1], there is no more need to separately optimize the code.
[1] https://bugs.openjdk.java.net/browse/JDK-8149469
ACTUAL -
protected CoderResult decodeLoop(ByteBuffer src,
CharBuffer dst)
{
if (src.hasArray() && dst.hasArray())
return decodeArrayLoop(src, dst);
else
return decodeBufferLoop(src, dst);
}
Use same code on heap buffers and direct buffers.
JUSTIFICATION :
Since access to heap buffers and direct buffers is now optimized via Unsafe [1], there is no more need to separately optimize the code.
[1] https://bugs.openjdk.java.net/browse/JDK-8149469
ACTUAL -
protected CoderResult decodeLoop(ByteBuffer src,
CharBuffer dst)
{
if (src.hasArray() && dst.hasArray())
return decodeArrayLoop(src, dst);
else
return decodeBufferLoop(src, dst);
}
- is blocked by
-
JDK-6509032 (bf) Monomorphic implementations for Direct and Heap versions of X-Buffer
-
- Open
-