5577eafdba
Some fields of `OSThread` are initialized by retrieving information by calling OS functions. For example, `trace_id_` is initialized by calling `OSThread::GetCurrentThreadTraceId()`. Similarly, this CL adds the `OSThread::GetCurrentThreadName()` method and uses it to initialize `name_`. TEST=CI Change-Id: Iee121d71e660be01ff684a298144fa7d59e3b61d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/278662 Commit-Queue: Derek Xu <derekx@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>