summaryrefslogtreecommitdiff
path: root/boot/1.2/default/BootControl.cpp
diff options
context:
space:
mode:
authorMichael Butler <butlermichael@google.com>2020-11-19 20:46:58 -0800
committerMichael Butler <butlermichael@google.com>2020-11-24 10:42:45 -0800
commit376005883c5981f1255e52e9a4ed417ab81fce58 (patch)
treef452d02ce26bda820ebfec8e014b31faf72c029a /boot/1.2/default/BootControl.cpp
parentc86759a16bbafdbc60e38abebda7cd625dec5410 (diff)
Invalidate NN interface objects on cache mismatch
Currently, if an IDevice object is a DEAD_OBJECT, the runtime attempts to re-retrieve the handle to the rebooted IDevice service. If an update occurs after the IDevice was originally created, the rebooted IDevice object may have different metadata and behavior. This is problematic because the original metadata is cached in the runtime. Further, an application might have made decisions based on that metadata and behavior. (Note that a driver service that is functionally the same but has a different underlying implementation such as having more optimized code will have different `getVersionString` metadata.) Instead, this CL invalidates the IDevice object on cache mismatch, and always returns an error if it is used. Bug: 173081926 Test: mma Change-Id: I805987361c627c32d45e1b7c7aed230376fc66ad Merged-In: I805987361c627c32d45e1b7c7aed230376fc66ad (cherry picked from commit 5a74c0fb0f23474a89471c49111e5ab526735392)
Diffstat (limited to 'boot/1.2/default/BootControl.cpp')
0 files changed, 0 insertions, 0 deletions