commit | 4b7f959f45c4d87aef97cda38ac1fb9e49b4c8a4 | [log] [tgz] |
---|---|---|
author | Victor Hsieh <victorhsieh@google.com> | Tue Mar 08 20:13:20 2022 +0000 |
committer | Victor Hsieh <victorhsieh@google.com> | Wed Mar 09 17:17:35 2022 +0000 |
tree | 90ccce84da45164bc155746039ab36436cd32131 | |
parent | 03ef64b4827277ef0478c3a82a441c982e4c20c9 [diff] |
Use AtomicU64 for handle_ref_count This allows us to use a read lock instead of a write on `lookup`. Intriguingly, the corresponding call to decrease the count in `forget` does not need a lock, thanks to Rust. So this should be a net performance gain. Also, panic is a handle's reference count is about to overflow. Bug: 220386264 Test: atest AuthFsHostTest Change-Id: Icc3ba1a3fe92431837d6cffb470688ae0883a355
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.