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

Unified Diff: runtime/vm/gc_sweeper.cc

Issue 1041523002: Refactor Thread lifecycle interface, add Thread::Enter/ExitIsolate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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 | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/gc_sweeper.cc
===================================================================
--- runtime/vm/gc_sweeper.cc (revision 44762)
+++ runtime/vm/gc_sweeper.cc (working copy)
@@ -113,7 +113,7 @@
}
virtual void Run() {
- Isolate::SetCurrent(task_isolate_);
+ Thread::EnterIsolate(task_isolate_);
GCSweeper sweeper;
HeapPage* page = first_;
@@ -143,7 +143,7 @@
old_space_->set_tasks(old_space_->tasks() - 1);
ml.Notify();
}
- Isolate::SetCurrent(NULL);
+ Thread::ExitIsolate();
delete task_isolate_;
}
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698