commit | 7846a9524a1bfab0e2fe6a8f061938ae0c71b6f3 | [log] [tgz] |
---|---|---|
author | JW Wang <wangchun@google.com> | Mon Dec 02 10:30:27 2019 +0800 |
committer | JW Wang <wangchun@google.com> | Mon Mar 02 19:35:05 2020 +0800 |
tree | aef19b0e96be0f31393b9c23f326e8f97f1c5485 | |
parent | 456e537c9b00bb9f8cce36e101603d9a3d392878 [diff] |
Add thread assertions (2/n) Add runtime checks for which thread a method should be called from. These assertions also catch potential deadlocks. Note we don't add assertions to #expireRollbackForPackage because it is called from both external and worker threads. We will fix that later. Bug: 145335013 Test: atest CtsRollbackManagerHostTestCases Test: atest RollbackTest Test: atest StagedRollbackTest Change-Id: I159d325bf157c5a5241571dff2e627d5f7c8e331