Integrated: 8312127: FileDescriptor.sync should temporarily increase parallelism
Alan Bateman
alanb at openjdk.org
Tue Jul 18 05:16:16 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.
This pull request has now been integrated.
Changeset: fbe51e38
Author: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/fbe51e388d8a7475f162f10aa788a6d37ec4c6d8
Stats: 17 lines in 3 files changed: 11 ins; 0 del; 6 mod
8312127: FileDescriptor.sync should temporarily increase parallelism
Reviewed-by: shade, bpb
-------------
PR: https://git.openjdk.org/jdk/pull/14893
More information about the core-libs-dev
mailing list