Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1803)

Unified Diff: base/synchronization/lock_impl.h

Issue 8414031: Temporary instrumentation to help understand lock errors on mac debug bots. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/synchronization/lock_impl_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/lock_impl.h
===================================================================
--- base/synchronization/lock_impl.h (revision 107048)
+++ base/synchronization/lock_impl.h (working copy)
@@ -53,6 +53,19 @@
#endif
private:
+#if defined(OS_MAC) && !defined(NDEBUG)
Mark Mentovai 2011/10/28 19:58:26 This won’t ever work. It’s OS_MACOSX. You can add
eroman 2011/10/28 20:00:53 Thanks Mark! I'll do that, and ping back once I h
+ // Some instrumentation to help track down http://crbug.com/102161. Used to
+ // assert in debug builds when trying to use a freed lock.
+ enum LivenessToken {
+ LT_ALIVE = 0xCa11ab1e,
+ LT_DELETED = 0xDecea5ed,
+ };
+
+ void CheckIsAlive();
+
+ uint32 liveness_token_;
+#endif
+
OSLockType os_lock_;
DISALLOW_COPY_AND_ASSIGN(LockImpl);
« no previous file with comments | « no previous file | base/synchronization/lock_impl_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698