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

Unified Diff: runtime/vm/lockers.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/lockers.h
===================================================================
--- runtime/vm/lockers.h (revision 39381)
+++ runtime/vm/lockers.h (working copy)
@@ -13,11 +13,9 @@
namespace dart {
-class MutexLocker : public StackResource {
+class MutexLocker : public ValueObject {
public:
- explicit MutexLocker(Mutex* mutex) :
- StackResource(Isolate::Current()),
- mutex_(mutex) {
+ explicit MutexLocker(Mutex* mutex) : mutex_(mutex) {
ASSERT(mutex != NULL);
// TODO(iposva): Consider adding a no GC scope here.
mutex_->Lock();
@@ -35,11 +33,9 @@
};
-class MonitorLocker : public StackResource {
+class MonitorLocker : public ValueObject {
public:
- explicit MonitorLocker(Monitor* monitor)
- : StackResource(Isolate::Current()),
- monitor_(monitor) {
+ explicit MonitorLocker(Monitor* monitor) : monitor_(monitor) {
ASSERT(monitor != NULL);
// TODO(iposva): Consider adding a no GC scope here.
monitor_->Enter();

Powered by Google App Engine
This is Rietveld 408576698