commit | f2131e7ccf1ca01a4e09058316f019b3ecb78fb7 | [log] [tgz] |
---|---|---|
author | Gabriel Marin <gmx@chromium.org> | Wed Apr 24 18:28:22 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Apr 24 18:28:22 2019 |
tree | c0fb68f5bee263b17ba1fcae51837f0806223ca8 | |
parent | c4dc34414b232ed5575d6a61837e2cfb32def045 [diff] |
tcmalloc: Remove use of LINKER_INITIALIZED in STLPageHeapAllocator Remove use of LINKER_INITILIZED flag for STLPageHeapAllocator<T, LockingTag>::underlying_. This is a templated static variable and the compiler doesn't optimize it away as expected. The reasoning is that the templated variable may be instantiated from multiple compilation units and the optimization pass misses this opportunity. Removing the explicit constructor, enables the compiler to optimize the global constructor away. BUG=724399,b:119055819 Change-Id: I8674bfe7dc42a24ef522733f45a9330ae2b33946 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1580043 Commit-Queue: Gabriel Marin <gmx@chromium.org> Reviewed-by: Will Harris <wfh@chromium.org> Cr-Commit-Position: refs/heads/master@{#653673}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .