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

Unified Diff: runtime/vm/object.cc

Issue 1361213003: Distinguish internal kill messages from user-initiated kill messages. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 2366142b7a56dacf9e74fbdcb5ace7e723b849d9..20ca510ad09d14c57d9624f9e4cb5827370db035 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -14226,6 +14226,7 @@ RawUnwindError* UnwindError::New(const String& message, Heap::Space space) {
space);
NoSafepointScope no_safepoint;
result ^= raw;
+ result.StoreNonPointer(&result.raw_ptr()->is_user_initiated_, false);
}
result.set_message(message);
return result.raw();
@@ -14237,6 +14238,11 @@ void UnwindError::set_message(const String& message) const {
}
+void UnwindError::set_is_user_initiated(bool value) const {
+ StoreNonPointer(&raw_ptr()->is_user_initiated_, value);
+}
+
+
const char* UnwindError::ToErrorCString() const {
const String& msg_str = String::Handle(message());
return msg_str.ToCString();
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698