diff options
author | rnk@chromium.org <rnk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-04 21:14:05 +0000 |
---|---|---|
committer | rnk@chromium.org <rnk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-04 21:14:05 +0000 |
commit | a0447ff91941befe514212dc07d873b2be5f2abb (patch) | |
tree | 6b7d90e3dbcb15e52093fbbf3cab11ebbc01650f /base | |
parent | bf2120b35a858a61223a302a2c075dfa4355a8c4 (diff) | |
download | chromium_src-a0447ff91941befe514212dc07d873b2be5f2abb.zip chromium_src-a0447ff91941befe514212dc07d873b2be5f2abb.tar.gz chromium_src-a0447ff91941befe514212dc07d873b2be5f2abb.tar.bz2 |
Add memcheck annotation and remove suppression.
This is really re-landing 112937 and attempting to avoid a warning from the
Linux builder.
R=jar@chromium.org
BUG=106326
TEST=needs to run on the CQ
Review URL: http://codereview.chromium.org/8796006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112944 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/tracked_objects.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/tracked_objects.cc b/base/tracked_objects.cc index 19d4786..8bbd07e 100644 --- a/base/tracked_objects.cc +++ b/base/tracked_objects.cc @@ -9,6 +9,7 @@ #include "base/format_macros.h" #include "base/message_loop.h" #include "base/stringprintf.h" +#include "base/third_party/valgrind/memcheck.h" #include "base/threading/thread_restrictions.h" #include "build/build_config.h" #include "base/port.h" @@ -219,6 +220,8 @@ ThreadData::~ThreadData() {} void ThreadData::PushToHeadOfList() { // Toss in a hint of randomness (atop the uniniitalized value). + (void)VALGRIND_MAKE_MEM_DEFINED_IF_ADDRESSABLE(random_number_, + sizeof(random_number_)); random_number_ += static_cast<int32>(this - static_cast<ThreadData*>(0)); random_number_ ^= (Now() - TrackedTime()).InMilliseconds(); |