forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release a jobserver token while locking a file
This is intended to fix rust-lang#6747 where multiple Cargos invoked with the same jobserver would all have their own token but not actually run concurrently due to file locking. Instead the fix is that whenever Cargo blocks for a file lock with a configured global jobserver, a token is released just before we block and then reacquired afterwards. This way we should ensure that we're not hogging a cpu/token unnecessarily without doing any work! Closes rust-lang#6747
- Loading branch information
1 parent
9eeece1
commit d19b41f
Showing
2 changed files
with
22 additions
and
3 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