forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows,JNI: implement native DeletePath method
Implement a native version of the Java Path.delete(). The new JNI function is more robust than Java IO file deletion function because it can also delete readonly files. The new JNI function can tolerate some concurrent modification errors, i.e. when other processes move or remove the file we are trying to delete. We'll use this method in WindowsFileSystem.delete to reduce the likelihood of such concurrent modifications crashing Bazel. See bazelbuild#5513 Change-Id: I8a03568171b6911f688587b65ca14031ed86b54b RELNOTES: none
- Loading branch information
1 parent
55d0c1c
commit f00bfee
Showing
4 changed files
with
262 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters