diff options
| author | 2025-01-10 16:00:29 -0800 | |
|---|---|---|
| committer | 2025-01-13 10:29:15 -0800 | |
| commit | e26dbf682771487f981bf801a31dccb18d43f1c5 (patch) | |
| tree | eb03bbea456f4f1913adc5f49e05f0b457b23170 /libs/androidfw/ResourceTimer.cpp | |
| parent | 87403cfd4f439c60a8fd0a881bedb17dd5a924cd (diff) | |
Reduce lock contention in AssetManager.java
Previously AssetManager always acquired a lock to decrement a ref count
but we only really need to do that when the resulting count is zero and
we are going to destroy the native object. This changed the ref count to
an atomic integer and reduces how much we acquire the lock.
Fixes: 375952570
Test: Automatic
Flag: EXEMPT bugfix
Change-Id: Icf5ac14635047758a3cb307168636c7ae0eaa2b9
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions