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

Unified Diff: runtime/vm/service_isolate.cc

Issue 1270323002: Revert VM thread cleanup (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/service_isolate.h ('k') | runtime/vm/thread_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service_isolate.cc
diff --git a/runtime/vm/service_isolate.cc b/runtime/vm/service_isolate.cc
index f866f31ed987f49e8e5629c578dbda68128d379c..3779905093b7a5a401698fb608fec912ad4e4669 100644
--- a/runtime/vm/service_isolate.cc
+++ b/runtime/vm/service_isolate.cc
@@ -749,30 +749,8 @@ void ServiceIsolate::Run() {
}
-void ServiceIsolate::KillServiceIsolate() {
- {
- MonitorLocker ml(monitor_);
- shutting_down_ = true;
- }
- Isolate::KillIsolate(isolate_);
- {
- MonitorLocker ml(monitor_);
- while (shutting_down_) {
- ml.Wait();
- }
- }
-}
-
-
void ServiceIsolate::Shutdown() {
if (!IsRunning()) {
- if (isolate_ != NULL) {
- // TODO(johnmccutchan,turnidge) When it is possible to properly create
- // the VMService object and set up its shutdown handler in the service
- // isolate's main() function, this case will no longer be possible and
- // can be removed.
- KillServiceIsolate();
- }
return;
}
{
« no previous file with comments | « runtime/vm/service_isolate.h ('k') | runtime/vm/thread_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698