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

Unified Diff: runtime/vm/thread.h

Issue 474913004: - Account for number of pending tasks in old-space collections. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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
Index: runtime/vm/thread.h
===================================================================
--- runtime/vm/thread.h (revision 39381)
+++ runtime/vm/thread.h (working copy)
@@ -22,6 +22,8 @@
namespace dart {
+class Isolate;
+
class Thread {
public:
static ThreadLocalKey kUnsetThreadLocalKey;
@@ -58,8 +60,15 @@
bool TryLock();
void Unlock();
+#if defined(DEBUG)
+ Isolate* Owner() const { return owner_; }
+#endif // defined(DEBUG)
+
private:
MutexData data_;
+#if defined(DEBUG)
+ Isolate* owner_;
+#endif // defined(DEBUG)
DISALLOW_COPY_AND_ASSIGN(Mutex);
};

Powered by Google App Engine
This is Rietveld 408576698