-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid trampolines in emmalloc (#20496)
Rather than define malloc as a small function that calls emmalloc_malloc, just make it an alias, etc. In an optimized build the small functions get inlined away, but we can save that work, and also it can have downsides (e.g. they have different function pointers, which aliases do not, see discussion in #20487). For that to work, we need to make the aliases weak, to match the fact that the trampolines were weak.
- Loading branch information
Showing
1 changed file
with
13 additions
and
74 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