summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-10-03 02:21:49 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-10-03 02:21:49 -0700
commit88ef38cdd023acbb2922a25613ffea676777f2e6 (patch)
tree57b2971441056c9985c2d99388028402262b8499
parentb5e092bbc762e180fa582a1c48da5c3e8d4b872d (diff)
parent9306e92a0b28f7c70a3e29272141b0e271452479 (diff)
downloadexternal_chromium-88ef38cdd023acbb2922a25613ffea676777f2e6.zip
external_chromium-88ef38cdd023acbb2922a25613ffea676777f2e6.tar.gz
external_chromium-88ef38cdd023acbb2922a25613ffea676777f2e6.tar.bz2
am 9306e92a: Use notable values when clearing Thread::startup_data_ to help with debugging
* commit '9306e92a0b28f7c70a3e29272141b0e271452479': Use notable values when clearing Thread::startup_data_ to help with debugging
-rw-r--r--base/threading/thread.cc10
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_);