diff options
author | 2024-11-01 14:45:33 +0000 | |
---|---|---|
committer | 2024-11-04 14:10:30 +0000 | |
commit | 2b637e24adefdf0c004fb3fae677f0f712339e02 (patch) | |
tree | 1932d7ade2699b84fa80da8083442f969012f8cd /compiler/optimizing/optimizing_compiler.cc | |
parent | 14769da54642d9065c3039a182ec643b0e2f44bb (diff) |
[Profile Saver] Prevent a frequent lock/unlock of wait_lock_.
Since if the frequency of notify_all is high and the condition `while (min_save_period_ns * 0.9 > sleep_time)` is not met, it could lead to frequent locking and unlocking of wait_lock_.
Bug: 375748223
Change-Id: Id4c2aca2479982843507b6105f555d09a4cdbc4d
Test: `art/test.py -b --host -r`
Test: go/art-benchmark?p=BootImageProfileId:41870 shows no regressions across startup, memory nor boot-time metrics
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
0 files changed, 0 insertions, 0 deletions