RFR: 8312127: FileDescriptor.sync should temporarily increase parallelism
Aleksey Shipilev
shade at openjdk.org
Mon Jul 17 15:29:25 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.
Looks okay. We are going to need this in some of our databases.
-------------
Marked as reviewed by shade (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/14893#pullrequestreview-1533074983
More information about the core-libs-dev
mailing list