mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8274548: (fc) FileChannel gathering write fails with IOException "Invalid argument" on macOS 11.6
Reviewed-by: alanb
This commit is contained in:
parent
f623460668
commit
07b1f1c282
4 changed files with 172 additions and 4 deletions
|
@ -31,6 +31,7 @@
|
|||
#include "jvm.h"
|
||||
#include "jlong.h"
|
||||
|
||||
#include "java_lang_Long.h"
|
||||
#include "nio.h"
|
||||
#include "nio_util.h"
|
||||
#include "net_util.h"
|
||||
|
@ -77,6 +78,11 @@ Java_sun_nio_ch_IOUtil_iovMax(JNIEnv *env, jclass this)
|
|||
return 16;
|
||||
}
|
||||
|
||||
JNIEXPORT jlong JNICALL
|
||||
Java_sun_nio_ch_IOUtil_writevMax(JNIEnv *env, jclass this)
|
||||
{
|
||||
return java_lang_Long_MAX_VALUE;
|
||||
}
|
||||
|
||||
jint
|
||||
convertReturnVal(JNIEnv *env, jint n, jboolean reading)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue