-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Atomically shrink to usage limit when accounting for reused slab.
Currently, we report impending new slab bytes before we shrink to usage limit. Also, the two operations aren't atomic. So, we might end up shrinking incorrect bytes due to interleaving allocations on other threads. PiperOrigin-RevId: 687424762 Change-Id: I3beda652c49ce814bff44a367f1b02005ca48c92
- Loading branch information
1 parent
ade6f2e
commit 26463b9
Showing
2 changed files
with
9 additions
and
13 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