summaryrefslogtreecommitdiff
path: root/libs/shaders/shaders.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2022-05-17 05:03:42 -0700
committer Siarhei Vishniakou <svv@google.com> 2022-05-20 07:14:46 +0000
commita91d8576d9fbb5c2fecbcad8a4f3eef0d2fcc30f (patch)
tree3051ae585a7ec9370f084f358ff1b5addb6aede2 /libs/shaders/shaders.cpp
parent97c6f77943da3d8646682e48540c0561e3ade620 (diff)
Add lock to protect UnwantedInteractionBlocker
The call to 'dump' may come from any thread, and therefore could cause a crash. Add a lock to protect this input stage. To run the test: adb shell -t "/data/nativetest64/inputflinger_tests/inputflinger_tests --gtest_filter='*Dump*' --gtest_repeat=100000 --gtest_break_on_failure" Before this patch, the test failed after ~5K - ~13K iterations (took 10-20 seconds to crash). Bug: 232645962 Test: m inputflinger_tests && adb sync data && <run the test> Change-Id: I2a199690450bc5bb4a8576aa59075e99d37a531b (cherry picked from commit 9f330c542b48dc6edba9aeaff3b3f4bf305713f3)
Diffstat (limited to 'libs/shaders/shaders.cpp')
0 files changed, 0 insertions, 0 deletions