commit | cc1a817faa565cbeadc293f27d2f03d9cff83330 | [log] [tgz] |
---|---|---|
author | Doug Evans <dje@google.com> | Tue Jun 05 19:53:21 2018 +0000 |
committer | Zach Anderson <zra@google.com> | Tue Jun 05 19:53:21 2018 +0000 |
tree | 86d52e3f3e50ba47a137ff6589652e7a292a2cc0 | |
parent | 4e0e72a65f225c4364a3857f45594ccd4b82a93a [diff] |
Use ZX_THREAD_STATE_BASIC on state output of ZX_INFO_THREAD. Change-Id: I0429ad208cddb0cb21db293fd798cb872f71b305 Reviewed-on: https://dart-review.googlesource.com/58560 Reviewed-by: Zach Anderson <zra@google.com>
diff --git a/runtime/vm/thread_interrupter_fuchsia.cc b/runtime/vm/thread_interrupter_fuchsia.cc index 26409ca..375f98d 100644 --- a/runtime/vm/thread_interrupter_fuchsia.cc +++ b/runtime/vm/thread_interrupter_fuchsia.cc
@@ -174,6 +174,11 @@ private: static const char* ThreadStateGetString(uint32_t state) { +// TODO(dje): This #ifdef is temporary to handle the transition. +// It can be deleted once the new version of zircon rolls out. +#ifdef ZX_THREAD_STATE_BASIC + state = ZX_THREAD_STATE_BASIC(state); +#endif switch (state) { case ZX_THREAD_STATE_NEW: return "ZX_THREAD_STATE_NEW";