-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: lock contention on acquiring the arena stats (#1207)
## Rationale There is no need to acquire the write lock when fetch arena's stats. ## Detailed Changes Use `RwLock` instead of `Mutex` to protect the core of the `MonoIncArena` to avoid lock contention. ## Test Plan Existing tests.
- Loading branch information
Showing
3 changed files
with
7 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,3 @@ workspace = true | |
workspace = true | ||
|
||
[dependencies] | ||
parking_lot = "0.11.1" |
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