In the docs it says that replacing files are guaranteed to be atomic on POSIX systems. Does this mean that it's not atomic on Windows?
As visible in this thread the atomic replace functionality for windows has been added for version 3.3.
The patch is visible here.
In the background MoveFileEx
with when nessesary the MOVEFILE_REPLACE_EXISTING
flag added is called.
MoveFileEx
is the same method as the openjdk calls. I can't find any documentation stating it is atomic, but the community seems to rely on it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With