forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WTF: Skip heap allocation for small objects in DEFINE_STATIC_LOCAL.
Many of these are only one or two pointers large anyway (e.g. AtomicString, Vector), so using the heap doesn't save memory, and just adds a pointer indirection to each access. Change-Id: If63b228bd0b5f8040c7b13134f063c1e26322f85 Reviewed-on: https://chromium-review.googlesource.com/519846 Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Yuta Kitamura <yutak@chromium.org> Commit-Queue: Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/master@{#476283}
- Loading branch information
1 parent
19fd249
commit feca33b
Showing
1 changed file
with
43 additions
and
12 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