-
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.
tcmalloc: remove some unnecessary thunk functions
Both invoke_delete_hooks_and_free versions are used with only one target function. Using templates in this only over-abstracts and complicates things. Untemplate them. do_free_pages is only called via invoke_delete_hooks_and_free, so fold them to remove one level of indirection. FreePages is a no-op wrapper around invoke_delete_hooks_and_free<do_free_pages>, remove this unnecessary indirection. PiperOrigin-RevId: 563103299 Change-Id: I7ab294326bb024a4b9bc2d599f675f075650fa21
- Loading branch information
1 parent
6b6d5b1
commit 80acb3b
Showing
2 changed files
with
15 additions
and
27 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