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

Unified Diff: runtime/vm/thread.cc

Issue 2759533002: Remove legacy restart code (Closed)
Patch Set: asiva review Created 3 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/thread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread.cc
diff --git a/runtime/vm/thread.cc b/runtime/vm/thread.cc
index 31ecabe5b28aeaab032185f2bb54c1a75ee6cbef..69a30fd434059dc79c7dd95c6d0eaffd48f2594a 100644
--- a/runtime/vm/thread.cc
+++ b/runtime/vm/thread.cc
@@ -274,6 +274,14 @@ void Thread::clear_sticky_error() {
}
+RawError* Thread::get_and_clear_sticky_error() {
+ NoSafepointScope nss;
+ RawError* return_value = sticky_error_;
+ sticky_error_ = Error::null();
+ return return_value;
+}
+
+
const char* Thread::TaskKindToCString(TaskKind kind) {
switch (kind) {
case kUnknownTask:
« no previous file with comments | « runtime/vm/thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698