summaryrefslogtreecommitdiff
path: root/libutils/ProcessCallStack_fuzz.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2019-11-14 09:19:07 -0800
committerTom Cherry <tomcherry@google.com>2019-11-14 09:19:07 -0800
commit1efc4849d7436d258460789a3ae83178bfef1abd (patch)
treec41e069e4a67e220ec133f3894a9f5b08ed410b9 /libutils/ProcessCallStack_fuzz.cpp
parente91c76b2104792d839b2bd3036e7e265427dcdc1 (diff)
init: make CheckPropertyTriggers() more efficient
Previously CheckPropertyTriggers() tried to do the entire property triggers check with one loop. However, that would require calling GetProperty() on all properties for all triggers just in case the property that is being set is used by a given trigger. This change first checks that the property being set exists in each trigger and that its value is set such that the trigger would be triggered, only then does it check that other property triggers are set to the right value. Bug: 143922756 Test: boot Test: substantially fewer GetProperty() calls from CheckPropertyTriggers() Change-Id: I0228cf47328b31963eaf3fc689fb60f711532df4
Diffstat (limited to 'libutils/ProcessCallStack_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions