commit | ccdecaa0c5cd3004fd6493b6056abff71b8c85b3 | [log] [tgz] |
---|---|---|
author | Hans Boehm <hboehm@google.com> | Mon Aug 26 17:36:42 2019 -0700 |
committer | Hans Boehm <hboehm@google.com> | Mon Nov 18 21:37:19 2019 +0000 |
tree | 2273ff2393ca0a33bcb1ddc431000bbe2357e891 | |
parent | 47085528b81989907b9497a38548614925c92af4 [diff] |
Don't create sp<> to stack allocated mHwSvc RefBase-derived objects should always be allocated in the heap. They should also immediately become the target of an sp. The original NetdHwService did not allow correct use. It privately (and indirectly) inherited from RefBase, making it impossible to generate an sp<> to it, as all clients should. We change the interface to make this possible. Bug: 138956784 Test: Booted with change. Change-Id: Ia977f8a7f1a8bb554fc5e0bfcce056939c688812