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

Unified Diff: runtime/vm/isolate.h

Issue 1759303002: Fix bots- set last resume timestamp when isolate is made runnable (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 63a8cc860295518ed5965d84ceb45fd430db7efb..e40b3900876e47edc888d878c8ac940b5ac8bc19 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -312,7 +312,12 @@ class Isolate : public BaseIsolate {
void set_message_handler(MessageHandler* value) { message_handler_ = value; }
bool is_runnable() const { return is_runnable_; }
- void set_is_runnable(bool value) { is_runnable_ = value; }
+ void set_is_runnable(bool value) {
+ is_runnable_ = value;
+ if (is_runnable_) {
+ set_last_resume_timestamp();
+ }
+ }
IsolateSpawnState* spawn_state() const { return spawn_state_; }
void set_spawn_state(IsolateSpawnState* value) { spawn_state_ = value; }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698