diff options
| author | 2023-01-06 21:53:58 +0000 | |
|---|---|---|
| committer | 2023-01-09 09:18:46 -0800 | |
| commit | 1b05e74010108cdc7a5669bf4089788530a662cc (patch) | |
| tree | 95ae1b80daa6546458cb6edb918630907233d9fa /cmds/bootanimation/BootAnimation.cpp | |
| parent | 6651ac510076c2d18131210ab5bca4b8010eef6c (diff) | |
Ensure weakly referenced callback fields are kept
Under certain conditions, R8 can optimize away write-only fields.
However, this isn't safe if the fields are implicitly used as strong
references that keep alive downstream weak references. Add a keep
rule to handle this for various callback field types. Follow-up work
will explore more general ways of avoiding undesirable optimizations
for similiar cases.
Change-Id: I5d21fad848eda7580fa150d03fd838d0b87b96a0
Test: m SystemUI + `dexdump SystemUI.apk | grep mCurrentUserTracker`
Bug: 264686688,234609147
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions