summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimization.cc
diff options
context:
space:
mode:
author Lokesh Gidra <lokeshgidra@google.com> 2023-05-25 23:43:59 +0000
committer Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2023-05-30 04:32:05 +0000
commit1733aa10e29501c32a84d98ea32ddd1642a33025 (patch)
tree51a354a775d59c1148ceff323c30f8da7ca351b8 /compiler/optimizing/optimization.cc
parent86309e745c1222101ec162401f8192f479fa15fe (diff)
Delay copy-buffer allotment for uffd compaction until actual use
Currently, we allot copy-buffer to mutator threads as soon as a userfault for moving space is received. This could lead to a scenario wherein a lot of mutator threads try to access the same page simultaneously and hence get userfaulted. In this case we would uselessly allot buffers to all mutator threads. In this CL we defer the allotment until it is confirmed that the mutator thread needs the buffer for compaction. Bug: 284289925 Test: art/test/testrunner/testrunner.py (cherry picked from commit 33e2f0e1caecab9c7b681e841e500e87caaa540f) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:684b6c42ab68ed1c10616ea076c23fb22a5ff354) Merged-In: I9201716227e9e7245f20b016ff86558e0842fc53 Change-Id: I9201716227e9e7245f20b016ff86558e0842fc53
Diffstat (limited to 'compiler/optimizing/optimization.cc')
0 files changed, 0 insertions, 0 deletions