mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8189330: Cleanup FileDescriptor implementation
Reviewed-by: bpb
This commit is contained in:
parent
b2ed2bda60
commit
cfe9ad4608
12 changed files with 245 additions and 516 deletions
|
@ -25,7 +25,6 @@
|
|||
|
||||
package java.io;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.nio.channels.FileChannel;
|
||||
import jdk.internal.misc.SharedSecrets;
|
||||
import jdk.internal.misc.JavaIOFileDescriptorAccess;
|
||||
|
@ -238,7 +237,7 @@ class FileOutputStream extends OutputStream
|
|||
open(name, append);
|
||||
altFinalizer = AltFinalizer.get(this);
|
||||
if (altFinalizer == null) {
|
||||
fd.registerCleanup(); // open set the fd, register the cleanup
|
||||
FileCleanable.register(fd); // open sets the fd, register the cleanup
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue