summaryrefslogtreecommitdiff
path: root/compiler/optimizing/code_sinking.cc
diff options
context:
space:
mode:
author Lokesh Gidra <lokeshgidra@google.com> 2023-08-02 21:40:08 +0000
committer Lokesh Gidra <lokeshgidra@google.com> 2023-08-04 19:06:01 +0000
commita83a6eeb22255f76b56a641ef7d019233cb8669f (patch)
treee32f31e6436387c7d030d926c6030fb40a043729 /compiler/optimizing/code_sinking.cc
parent4b8b1c0f5924c6d58274db0f23b69c75521b6927 (diff)
Unregister unused moving space before starting concurrent compaction
For the next GC cycle's mremap to succeed it is important to register the entire moving space with userfaultfd. The downside is that we get userfaults for the new TLABs. We can eliminate these by mapping a zero-page in the unused portion of the moving space and then unregistering the unused portion. This takes care of the kernel's constraint that otherwise makes mremap fail the next time. Test: manual Bug: 160737021 Change-Id: Ibae6174e9af82537ff6b6b13eb6b6dc53d5b8cb9
Diffstat (limited to 'compiler/optimizing/code_sinking.cc')
0 files changed, 0 insertions, 0 deletions