diff options
author | Alex Light <allight@google.com> | 2021-04-20 14:29:00 -0700 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2021-04-23 22:56:43 +0000 |
commit | 8f187c3326b30fc43bedb254351ea55185fbd51a (patch) | |
tree | 8f51159f835f112dcd9ada2e17b234744aac3cca /test/MultiDex/main.jpp | |
parent | e0f5839ae6e8dd90ccb31e658e3c20a8db10c219 (diff) |
Add static asserts we have a full list of mirror classes
We need to know if a particular object is of a mirrored class type in
order for structural class redefinition to work correctly. For
simplicity and to avoid making class objects larger we do this with a
simple list of mirror-class descriptors. This adds some basic
static_assert checking and a documenting macro to all mirror classes.
This should help to ensure nobody in the future unintentionally breaks
structural class redefinition by adding a new mirror type.
Test: treehugger
Bug: 144349987
Change-Id: I47c7b256655e9ce9bcf21d9670e0511bcbac65c9
Diffstat (limited to 'test/MultiDex/main.jpp')
0 files changed, 0 insertions, 0 deletions