summaryrefslogtreecommitdiff
path: root/libs/battery/LongArrayMultiStateCounterTest.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2021-07-13 13:57:39 -0700
committer Vishnu Nair <vishnun@google.com> 2021-07-13 13:57:39 -0700
commit14d218b589719842142dd7455484f80025fb63f3 (patch)
tree46bef1f9e3057860ee47d72eefaea2c414f0d56f /libs/battery/LongArrayMultiStateCounterTest.cpp
parentb058a604011ab7f98513345cbd4fb9573065c959 (diff)
SF: Avoid promoting parent layer in binder thread
Some components in SF extend the life cycle of layer objects causing them to be destroyed without the state lock held. If a binder thread promotes a layer, there is a chance it will be left holding the last reference. This will cause the layer to be destroyed in the binder thread, resulting in invalid accesses and crashes. Fix this by tracking root layers with a variable to avoid promoting parent layer in binder thread. Test: presubmit, manually test refresh rate overlay Test: go/wm-smoke Fixes: 186412934 Change-Id: Icd9f4e851bbd92c887e113e52505ce4d8eb3ea0c
Diffstat (limited to 'libs/battery/LongArrayMultiStateCounterTest.cpp')
0 files changed, 0 insertions, 0 deletions