commit | 739bf72ccb22794bc65203aa4824dba737cadd72 | [log] [tgz] |
---|---|---|
author | Alex Light <allight@google.com> | Fri Oct 20 13:14:24 2017 -0700 |
committer | Alex Light <allight@google.com> | Fri Oct 20 14:55:06 2017 -0700 |
tree | 0d38323ef87c7e01af949905b5e5bbb13c55a1f7 | |
parent | 2f707787e60d74a187c570d6b47a5a14036e09ba [diff] |
Make RunAgentThread ensure thread attach is possible. We need to ensure that we will be able to actually attach a thread before we try to create the new agent thread. Previously we were simply asserting that Attach succeeds and returning instantly. This could lead to CHECK failures if we were unlucky enough to race with the runtime destructor. Test: ./test.py --host -j50 Bug: 68052586 Change-Id: Ib303260f4029346bb0c52c969c69ac54f14cce22