mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8204663: clean up remaining native parts after JDK-8187631
Reviewed-by: rriggs, psandoz
This commit is contained in:
parent
0e39fb9304
commit
4d84004591
6 changed files with 0 additions and 33 deletions
|
@ -72,7 +72,3 @@ Java_java_io_FileOutputStream_writeBytes(JNIEnv *env,
|
|||
writeBytes(env, this, bytes, off, len, append, fos_fd);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_java_io_FileOutputStream_close0(JNIEnv *env, jobject this) {
|
||||
handleClose(env, this, fos_fd);
|
||||
}
|
||||
|
|
|
@ -535,16 +535,6 @@ jint handleAppend(FD fd, const void *buf, jint len) {
|
|||
return writeInternal(fd, buf, len, JNI_TRUE);
|
||||
}
|
||||
|
||||
void
|
||||
handleClose(JNIEnv *env, jobject this, jfieldID fid)
|
||||
{
|
||||
jobject fileDescriptor = (*env)->GetObjectField(env, (this), (fid));
|
||||
if (fileDescriptor == NULL) {
|
||||
return;
|
||||
}
|
||||
fileDescriptorClose(env, fileDescriptor);
|
||||
}
|
||||
|
||||
// Function to close the fd held by this FileDescriptor and set fd to -1.
|
||||
void
|
||||
fileDescriptorClose(JNIEnv *env, jobject this)
|
||||
|
|
|
@ -48,7 +48,6 @@ jlong handleGetLength(FD fd);
|
|||
JNIEXPORT jint handleRead(FD fd, void *buf, jint len);
|
||||
jint handleWrite(FD fd, const void *buf, jint len);
|
||||
jint handleAppend(FD fd, const void *buf, jint len);
|
||||
void handleClose(JNIEnv *env, jobject this, jfieldID fid);
|
||||
void fileDescriptorClose(JNIEnv *env, jobject this);
|
||||
JNIEXPORT jlong JNICALL
|
||||
handleLseek(FD fd, jlong offset, jint whence);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue