diff options
author | Steve Block <steveblock@google.com> | 2011-09-29 14:16:42 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-09-30 11:47:29 +0100 |
commit | 9306e92a0b28f7c70a3e29272141b0e271452479 (patch) | |
tree | 57b2971441056c9985c2d99388028402262b8499 /base | |
parent | e4aeb840e5cd2acd20cf6b18af808af55a92e745 (diff) | |
download | external_chromium-9306e92a0b28f7c70a3e29272141b0e271452479.zip external_chromium-9306e92a0b28f7c70a3e29272141b0e271452479.tar.gz external_chromium-9306e92a0b28f7c70a3e29272141b0e271452479.tar.bz2 |
Use notable values when clearing Thread::startup_data_ to help with debugging
Bug: 5244039
Change-Id: I2f91ceb69c140b70b550eda83aa6bbafc95631f2
Diffstat (limited to 'base')
-rw-r--r-- | base/threading/thread.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/base/threading/thread.cc b/base/threading/thread.cc index 7a100ca..cf5fc45 100644 --- a/base/threading/thread.cc +++ b/base/threading/thread.cc @@ -73,7 +73,12 @@ bool Thread::StartWithOptions(const Options& options) { if (!PlatformThread::Create(options.stack_size, this, &thread_)) { DLOG(ERROR) << "failed to create thread"; +#if defined(ANDROID) + // For debugging. See http://b/5244039 + startup_data_ = reinterpret_cast<StartupData*>(0xdeadd00d); +#else startup_data_ = NULL; +#endif return false; } @@ -81,7 +86,12 @@ bool Thread::StartWithOptions(const Options& options) { startup_data.event.Wait(); // set it to NULL so we don't keep a pointer to some object on the stack. +#if defined(ANDROID) + // For debugging. See http://b/5244039 + startup_data_ = reinterpret_cast<StartupData*>(0xbbadbeef); +#else startup_data_ = NULL; +#endif started_ = true; DCHECK(message_loop_); |