Index: runtime/vm/object_store.h |
diff --git a/runtime/vm/object_store.h b/runtime/vm/object_store.h |
index 92be955561599b0c55c3689fe4305c23b3f32d5f..ab2bd100f3712d51f605a0f1987e65d600ab5b53 100644 |
--- a/runtime/vm/object_store.h |
+++ b/runtime/vm/object_store.h |
@@ -365,6 +365,12 @@ class ObjectStore { |
return error_listeners_; |
} |
+ // This sticky_error is used to preserve Thread::sticky_error_ after the |
+ // mutator thread has been unscheduled. |
+ RawError* sticky_error() const { return sticky_error_; } |
+ void SetStickyErrorFromThread(const Thread* value); |
Ivan Posva
2016/03/09 08:27:18
Now we are putting functionality into the ObjectSt
|
+ void clear_sticky_error() { sticky_error_ = Error::null(); } |
+ |
RawContext* empty_context() const { return empty_context_; } |
void set_empty_context(const Context& value) { |
empty_context_ = value.raw(); |
@@ -554,6 +560,7 @@ class ObjectStore { |
RawGrowableObjectArray* resume_capabilities_; |
RawGrowableObjectArray* exit_listeners_; |
RawGrowableObjectArray* error_listeners_; |
+ RawError* sticky_error_; |
RawContext* empty_context_; |
RawInstance* stack_overflow_; |
RawInstance* out_of_memory_; |