diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-04 01:00:30 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-04 01:00:30 +0000 |
commit | dc01874febf63d62bd05178f168f5459fec05372 (patch) | |
tree | 5605c039598254d9a4abd109809dc37496d7dd52 /base/third_party | |
parent | a96a6021f0cf7acf3c54b9050d1d313b12ba2748 (diff) | |
download | chromium_src-dc01874febf63d62bd05178f168f5459fec05372.zip chromium_src-dc01874febf63d62bd05178f168f5459fec05372.tar.gz chromium_src-dc01874febf63d62bd05178f168f5459fec05372.tar.bz2 |
Change three LazyInstances I added earlier to be leaky.
Without this, they were still be cleaned up at exit, which is
unnecessary and slow, and some threads might not even have an
AtExitManager.
With this, we leak 2 Locks and 1 ThreadLocalBoolean at exit.
BUG=101600
TEST=none
Review URL: http://codereview.chromium.org/8450015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/third_party')
-rw-r--r-- | base/third_party/dmg_fp/dtoa_wrapper.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/base/third_party/dmg_fp/dtoa_wrapper.cc b/base/third_party/dmg_fp/dtoa_wrapper.cc index 21c4dc3..ca49607 100644 --- a/base/third_party/dmg_fp/dtoa_wrapper.cc +++ b/base/third_party/dmg_fp/dtoa_wrapper.cc @@ -10,8 +10,12 @@ // We need two locks because they're sometimes grabbed at the same time. // A single lock would lead to an attempted recursive grab. -static base::LazyInstance<base::Lock> dtoa_lock_0(base::LINKER_INITIALIZED); -static base::LazyInstance<base::Lock> dtoa_lock_1(base::LINKER_INITIALIZED); +static base::LazyInstance<base::Lock, + base::LeakyLazyInstanceTraits<base::Lock> > + dtoa_lock_0(base::LINKER_INITIALIZED); +static base::LazyInstance<base::Lock, + base::LeakyLazyInstanceTraits<base::Lock> > + dtoa_lock_1(base::LINKER_INITIALIZED); /* * This define and the code below is to trigger thread-safe behavior |