-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move PauseClient into Runtime (#33309)
PauseClient is really a global at the same level as Runtime -- based on the Runtime we might decide to advance time really quickly for tests, make randomness deterministic, start threads deterministically, or pause at specific labels to allow race conditions to be tested. I was motivated to do this because I was adding new race tests for QueryCache, and I found myself passing PauseClient through many layers of code that already have Runtime and also already have multiple PauseClients. This felt redundant, and I can clean up a lot of code by just passing through the runtime. One side effect is passing Runtime to a couple structs that don't already have it, like DatabaseSnapshot. GitOrigin-RevId: f99a8625946fc2356103b5b8e294aa31fc6e0007
- Loading branch information
Showing
46 changed files
with
288 additions
and
465 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
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
Oops, something went wrong.