summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceUtils.cpp
diff options
context:
space:
mode:
author Sam Maier <smaier@google.com> 2024-11-28 16:52:42 +0000
committer Sam Maier <smaier@google.com> 2024-11-28 16:52:42 +0000
commitb5431c7f69a25c7c7d88262ffd563e7315608087 (patch)
treebbd4686b6574782772317d7cc34b7ad7f91ea311 /libs/androidfw/ResourceUtils.cpp
parent8d209a38f9eef0e19cd43d081472a4e40472e6c0 (diff)
Don't wait on lock in getClassLoader if already cached.
Currently, we are blocking on a lock which is not necessary if we have already cached the value. Chrome is seeing real-world pain from this - we have a background task that sits for a while in constructSplit (spinning up a large ClassLoader), and our main thread is blocking on this mLock for absolutely no purpose. Change-Id: I9ddadde23ffd9e04988c8f1933d2c8652bc5f222
Diffstat (limited to 'libs/androidfw/ResourceUtils.cpp')
0 files changed, 0 insertions, 0 deletions