summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-04 16:25:45 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-04 16:25:45 +0000
commitf41bf8e20b92b3c8147a38631bc2d2b203661c7d (patch)
tree3465d17cf4285cba91fae4d1b107d170321d3580 /base
parent69241d65fbe844a37fe9cd09e328d4c3a854f648 (diff)
downloadchromium_src-f41bf8e20b92b3c8147a38631bc2d2b203661c7d.zip
chromium_src-f41bf8e20b92b3c8147a38631bc2d2b203661c7d.tar.gz
chromium_src-f41bf8e20b92b3c8147a38631bc2d2b203661c7d.tar.bz2
Revert 112937 - Suppress unitialized use of memory for random_number_ seed
I'm going to TBR this, since it causes a bunch of redness on the tree, and is really a supression. tbr=rtenneti,mk bug=106326 Review URL: http://codereview.chromium.org/8792005 TBR=jar@chromium.org Review URL: http://codereview.chromium.org/8796005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112938 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/tracked_objects.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/base/tracked_objects.cc b/base/tracked_objects.cc
index 9a9ce07..19d4786 100644
--- a/base/tracked_objects.cc
+++ b/base/tracked_objects.cc
@@ -9,7 +9,6 @@
#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,8 +218,6 @@ ThreadData::ThreadData(int thread_number)
ThreadData::~ThreadData() {}
void ThreadData::PushToHeadOfList() {
- VALGRIND_MAKE_MEM_DEFINED_IF_ADDRESSABLE(&random_number_,
- sizeof(random_number_));
// Toss in a hint of randomness (atop the uniniitalized value).
random_number_ += static_cast<int32>(this - static_cast<ThreadData*>(0));
random_number_ ^= (Now() - TrackedTime()).InMilliseconds();