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.


Change-Id: I8674bfe7dc42a24ef522733f45a9330ae2b33946
Commit-Queue: Gabriel Marin <>
Reviewed-by: Will Harris <>
Cr-Original-Commit-Position: refs/heads/master@{#653673}
Cr-Mirrored-Commit: f2131e7ccf1ca01a4e09058316f019b3ecb78fb7
1 file changed
tree: 0d0668fd45c7ca9b7c5b530bd4ba7fcd7c4e1151
  1. src/