RFR: 8312127: FileDescriptor.sync should temporarily increase parallelism
Brian Burkhalter
bpb at openjdk.org
Mon Jul 17 16:30:09 UTC 2023
On Sat, 15 Jul 2023 13:54:46 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> If FileDescriptor::sync is invoked by a virtual thread then it doesn't release its carrier to do other work while modifications are written to the file system. For cases like this, parallelism should be temporarily increased for the duration of the operation. This one is somewhat legacy as it's only JDK 1.0/1.1 era APIs that provide access to the FileDescriptor so it wasn't done with the other methods in JDK 19. It's updated here, as it has been noticed.
+1
-------------
Marked as reviewed by bpb (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/14893#pullrequestreview-1533184506
More information about the core-libs-dev
mailing list