summaryrefslogtreecommitdiffstats
path: root/libcxx/benchmarks/algorithms.bench.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-05-29 14:05:29 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-05-29 14:05:29 +0000
commit351779e9720e520603325c5a44218016c1bc6192 (patch)
treeab77ef52c6139194f3123abf54128dfb78cb3771 /libcxx/benchmarks/algorithms.bench.cpp
parent1533eda111284a055aebeea92c54c05fb6d0939b (diff)
downloadbcm5719-llvm-351779e9720e520603325c5a44218016c1bc6192.tar.gz
bcm5719-llvm-351779e9720e520603325c5a44218016c1bc6192.zip
[Timer] Move DefaultTimerGroup into a ManagedStatic.
This used to be just leaked. r295370 made it use magic statics. This adds a global destructor, which is something we'd like to avoid. It also creates a weird situation where the mutex used by TimerGroup is re-created during global shutdown and leaked. Using a ManagedStatic here is also subtle as it relies on the mutex inside of ManagedStatic to be recursive. I've added a test for that in a previous change. llvm-svn: 304156
Diffstat (limited to 'libcxx/benchmarks/algorithms.bench.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud