Skip to content

Commit

Permalink
Minor cleanup as saved_isolate_ should always be NULL in this case pe…
Browse files Browse the repository at this point in the history
…r the ASSERT in the constructor.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1408183004 .
  • Loading branch information
a-siva committed Oct 29, 2015
1 parent 64261cb commit baaee47
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions runtime/vm/isolate.h
Original file line number Diff line number Diff line change
Expand Up @@ -912,9 +912,7 @@ class StartIsolateScope {
if (saved_isolate_ != new_isolate_) {
new_isolate_->ClearStackLimit();
Thread::ExitIsolate();
if (saved_isolate_ != NULL) {
Thread::EnterIsolate(saved_isolate_);
}
ASSERT(saved_isolate_ == NULL);
}
}

Expand Down

0 comments on commit baaee47

Please sign in to comment.