mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8292562: (fc) Use copy_file_range in FileChannel::transferTo on Linux
Reviewed-by: alanb
This commit is contained in:
parent
3844685be0
commit
c74b6d4552
4 changed files with 151 additions and 10 deletions
|
@ -147,7 +147,7 @@ JNIEXPORT jlong JNICALL
|
|||
Java_sun_nio_ch_FileChannelImpl_transferTo0(JNIEnv *env, jobject this,
|
||||
jobject srcFD,
|
||||
jlong position, jlong count,
|
||||
jobject dstFD)
|
||||
jobject dstFD, jboolean append)
|
||||
{
|
||||
const int PACKET_SIZE = 524288;
|
||||
|
||||
|
@ -191,7 +191,8 @@ Java_sun_nio_ch_FileChannelImpl_transferTo0(JNIEnv *env, jobject this,
|
|||
JNIEXPORT jlong JNICALL
|
||||
Java_sun_nio_ch_FileChannelImpl_transferFrom0(JNIEnv *env, jobject this,
|
||||
jobject srcFDO, jobject dstFDO,
|
||||
jlong position, jlong count)
|
||||
jlong position, jlong count,
|
||||
jboolean append)
|
||||
{
|
||||
return IOS_UNSUPPORTED;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue