Fallback to stop-the-wold compaction on hosts with kernel < 5.7
Userfaultfd GC uses a userfaultfd trick to terminate concurrent
compaction. This trick requires page-fault retry feature in the kernel,
which was introduced in 5.7. Without the feature, repeated faults on the
same page leads to SIGBUS with BUS_ADRERR code.
The feature was backported to android12-5.4, so is not an issue on
devices.
Test: ART_USE_READ_BARRIER=false art/test/testrunner/testrunner.py --host
Bug: 242181443
Bug: 160737021
Change-Id: Ie07012b66de4f77f8b5ac97d9b4951de643398e5
1 file changed