summaryrefslogtreecommitdiffstats
path: root/libjava/java/nio/MappedByteBufferImpl.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-21 15:33:53 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-21 15:33:53 +0000
commitabb13663a66a4e38613848766fe687c276ec41b6 (patch)
tree5fa0cc964f6d61e0eb5bd8fc06169c322bd63729 /libjava/java/nio/MappedByteBufferImpl.java
parent54ec2a40e023563fc136d7084f397706bf8141de (diff)
downloadppe42-gcc-abb13663a66a4e38613848766fe687c276ec41b6.tar.gz
ppe42-gcc-abb13663a66a4e38613848766fe687c276ec41b6.zip
2004-04-21 Michael Koch <konqueror@gmx.de>
* java/nio/DirectByteBufferImpl.java (shiftDown): Made static, give address as argument and provide a convenience method that overwrites shiftDown in ByteBufferImpl and calls the native shiftDown. * java/nio/MappedByteBufferImpl.java (): Use optimized method in DirectByteBufferImpl. * java/nio/natDirectByteBufferImpl.cc (shiftDown): Changed method signature. Removed usage of array_offset. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80967 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/nio/MappedByteBufferImpl.java')
-rw-r--r--libjava/java/nio/MappedByteBufferImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/java/nio/MappedByteBufferImpl.java b/libjava/java/nio/MappedByteBufferImpl.java
index ccd987edfbd..5932c99f6d0 100644
--- a/libjava/java/nio/MappedByteBufferImpl.java
+++ b/libjava/java/nio/MappedByteBufferImpl.java
@@ -121,7 +121,8 @@ final class MappedByteBufferImpl extends MappedByteBuffer
if (pos > 0)
{
int count = remaining();
- shiftDown(0, pos, count);
+ // Call shiftDown method optimized for direct buffers.
+ DirectByteBufferImpl.shiftDown(address, 0, pos, count);
position(count);
limit(capacity());
}
OpenPOWER on IntegriCloud