commit | 3afd9f970e31b663651a64a3dd80352fd90ea555 | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Wed Jan 04 17:28:59 2023 +0000 |
committer | Alan Stokes <alanstokes@google.com> | Wed Jan 04 17:58:28 2023 +0000 |
tree | f2bd0b11a17d771eace47b29d7cb2372f3159b5c | |
parent | abcf262094091ddcca9f440d33a61676a577520c [diff] |
Annotate blocking methods For all of our API methods which may block (due to lock contention, I/O, binder calls or, well, starting a VM) add the @WorkerThread annotation and a note in the javadoc. This includes some apparently trivial methods - but since in some cases we do significant work while holding mLock, anything that acquires it may also block. OTOH there's really no reason to call any of these on a UI thread anyway. There is one substantive change here - I moved deleting the VM directory outside of mLock, now that we have mWasDeleted. (And sCreateLock means the delete can't race with a create.) Bug: 261037705 Test: atest MicrodroidTests Change-Id: I9029c90c5cbd52dd0947d7f68fb9214b63174474
This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.