diff options
author | Lee Shombert <shombert@google.com> | 2021-03-04 10:34:50 -0800 |
---|---|---|
committer | Lee Shombert <shombert@google.com> | 2021-03-04 12:47:29 -0800 |
commit | 36d42a5545621d9b995f8a187b101e54939cca50 (patch) | |
tree | 1dc48d8a1b9d36df582f2966e73ad492527df556 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | c241755d1fbc2e439c7a13a1e2d529dd4204a6ee (diff) |
Update IntentResolver snapshots
Bug: 179652745
Update IntentResolver snapshots to deep-copy the arrays that are part
of the maps. This change makes copies of the IntentFilter arrays but
the IntentFilter elements are still copied by reference. Therefore,
this change addresses the race condition of the bug but does not
address dynamic mime types as per the comment.
With this change, the steady-state overhead of a snapshot is
approximately 1.4Mb relative to not using snapshots at all. This was
measured by comparing the rss (mean of five runs) and pss of three
images:
* disabled - snapshots disabled
* baseline - snapshots enabled, without this CL
* proposed - snapshots enabled, with this CL
Test: atest
* FrameworksServicesTests:AppsFilterTest
* FrameworksServicesTests:PackageInstallerSessionTest
* FrameworksServicesTests:PackageManagerServiceTest
* FrameworksServicesTests:PackageManagerSettingsTests
* FrameworksServicesTests:ScanTests
* FrameworksServicesTests:UserSystemPackageInstallerTest
* PackageManagerServiceBootTest
* UserLifecycleTests#startUser
* UserLifecycleTests#stopUser
* UserLifecycleTests#switchUser
* android.appsecurity.cts.EphemeralTest
* android.appsecurity.cts.InstantAppUserTest
Change-Id: I704bf8e6c0888c2ffb9563e188ebd8ac91c2f597
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions