commit | a4e2a4a6589e34e3c79218ef425de4030ce9c3eb | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Mon Nov 28 12:04:39 2022 +0000 |
committer | Alan Stokes <alanstokes@google.com> | Mon Nov 28 13:45:50 2022 +0000 |
tree | 2ca8a65997207e5697e9de5b6bf18880f02c18f0 | |
parent | 03a8770262e22f9a333cc1b8349d08c260e33b08 [diff] |
Close() shouldn't throw Close() should handle releasing resources when we are no longer using a VM (since we implement autoCloseable). It shouldn't throw if th VM is stopped - that just means nothing is being used. We could get rid of stop(), or give it the same semantics, but I think it has uses - if the app should be running then stop() throwing shows something is wrong. Add tests. Also minor gratuitous simplification in benchmark code. Bug: 258397314 Test: atest MicrodroidTests Change-Id: Ia8a6661ba1664368ba7f09ed0e4dcb8b39469fb8
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.