-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More type-erasing of InitializeSlots by removing the Alloc and AlignO…
…fSlot template parameters. - Add policy.alloc as a type-erased function. - Share more usage of DeallocateBackingArray. Note that this requires calling infoz().Unregister() explicitly when needed. - Remove DeallocateStandard since it isn't needed anymore now that we got rid of dealloc_fn. - Add slot_align into PolicyFunctions, and use uint32_t instead of size_t for this and for slot_size. PiperOrigin-RevId: 724388818 Change-Id: I919cde94de63edef2c0f698fc8b55b9755cf9fc0
- Loading branch information
1 parent
5852b47
commit 40cd2cf
Showing
2 changed files
with
78 additions
and
78 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