8292562: (fc) Use copy_file_range in FileChannel::transferTo on Linux

Reviewed-by: alanb
This commit is contained in:
Brian Burkhalter 2022-08-26 16:12:58 +00:00
parent 3844685be0
commit c74b6d4552
4 changed files with 151 additions and 10 deletions

View file

@ -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;
}