summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Matt Buckley <mattbuckley@google.com> 2023-07-06 23:15:30 +0000
committer Matt Buckley <mattbuckley@google.com> 2023-07-10 23:29:45 +0000
commite9adfbde2b6170575adda579641d969c631145f9 (patch)
treeed5b49bc817f23dcffd48de846423f40c46a0337 /libs/androidfw/AttributeResolution.cpp
parent61a737c63acda9a200aadf7242dcecac47160be5 (diff)
Fix HWUI ShaderCache mIDHash eviction race
This patch fixes the ShaderCache eviction race by ensuring the ID remains in the cache outside of the background thread, during set(). This patch also makes set() a class method, and removes getBlobCacheLocked() for simplicity as it no longer serves to "ensure the blob cache is initialized" as initShaderDiskCache() handles that role now. Test: atest hwui_unit_tests:ShaderCacheTest Bug: 290231463 Change-Id: Id69aff95a0cf3bed6b3b7dfc2bd61b2a8a2b555a
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions