tcmalloc: Remove use of LINKER_INITIALIZED in STLPageHeapAllocator
Remove use of LINKER_INITILIZED flag for
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.
Commit-Queue: Gabriel Marin <firstname.lastname@example.org>
Reviewed-by: Will Harris <email@example.com>
1 file changed