Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move recursion protection to PoissonAllocationSampler
Moving the ReentryGuard from the dispatcher and hooks into the PoissonAllocationSampler enables observers to receive notifications on other observer's memory allocations. Furthermore is reduces overhead of creating a ReentryGuard (which involves accessing thread local storage) until it is really necessary. Bug: 1137393 Change-Id: Ia3fdede065af0b240357cb85508a4efbe953ce8d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4184715 Reviewed-by: Benoit Lize <lizeb@chromium.org> Reviewed-by: Joe Mason <joenotcharles@google.com> Commit-Queue: Richard Townsend <richard.townsend@arm.com> Cr-Commit-Position: refs/heads/main@{#1096754}
- Loading branch information
1 parent
fa811b4
commit 1f9ea58
Showing
3 changed files
with
76 additions
and
95 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