On Sat, 15 Jul 2023 13:54:46 GMT, Alan Bateman <[email protected]> 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 <[email protected]>
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

Reply via email to