diff options
| author | 2024-07-18 19:55:21 +0000 | |
|---|---|---|
| committer | 2024-07-18 23:39:22 +0000 | |
| commit | ffe52b0806a00747486e9ffe22a1e20698204e1b (patch) | |
| tree | 82841a19c676b90328ef096d9c2e44b4c3283210 /compiler/optimizing/optimizing_compiler.cc | |
| parent | 399d238b18bd475f095d5d0cb004c846b5997307 (diff) | |
Allow madvise(MADV_HUGEPAGE) on moving space
It was removed with the assumption that THP is not used on devices.
However, that's not true. It was needed to ensure that when we fault a
page after mremap in compaction-pause, we don't fault-in pages in
beginning portion of the space which is to be registered with
userfaultfd and then concurrently compacted. In this change, we
align-up the fault address with PMD size to ensure above doesn't
happen.
Bug: 353724322
Test: art/test/testrunner/testrunner.py --host
Change-Id: If7b0b48f45de7d7ebb550a1a51be2755fe955d79
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
0 files changed, 0 insertions, 0 deletions