summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMarco Ballesio <balejs@google.com>2020-02-28 13:17:31 -0800
committerMarco Ballesio <balejs@google.com>2020-03-06 12:30:11 -0800
commit0f22edf66d78be48aa63978ad72526c763fe5501 (patch)
tree1ff5a841c5adf3eb359d2248ebd2e2dc538f1db1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta95769b7197f8590df1c9ae54913d0320d2fa9e3 (diff)
freezer: synchronous unfreeze
Unfreeze is executed by the same handler queue as compaction/uncompaction. Heightened compaction activity, like during high memory pressure, will cause unfreeze to happen after all (un)compactions enqueued before them are completed. This can potentially cause a stall of several hundred milliseconds for interactive user journeys. This change makes unfreeze synchronous with OomAdjuster to minimize latency to unfreeze, but leaves logging and telemetry collection in the asynchronous path to reduce impact on the main thread. Total duration of unfreeze is within a few tens of microsecods as measured on a pixel 4. Test: verified in logs that unfreeze happens asynchronously. Droidfooded the chenge on a flame for several days with no adverse effects. Bug: 143308662 Change-Id: I2eca90a982aed738412fcafe3558ca08bc40534b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions