diff options
author | 2023-03-07 15:50:12 +0000 | |
---|---|---|
committer | 2023-03-07 23:22:47 +0000 | |
commit | e6c839354e623ecb030d95e5333b5df84b7953dd (patch) | |
tree | 8b0c5b1c3bc674827cca7b0722bf9efe7e225754 /runtime/class_linker.cc | |
parent | 54dbcb4f0d5986b1fff741f3c171cfc7489b6f43 (diff) |
Read UFFD GC flags from cache-info.xml.
After this change, both the runtime and dex2oat reads UFFD GC flags from
cache-info.xml generated by odrefresh. This is to make sure that they
consistently use one type of GC until a reboot.
Bug: 271875098
Test: -
1. Boot.
2. See "zygote64: Using CollectorTypeCC GC."
3. adb shell device_config put runtime_native_boot enable_uffd_gc true
4. adb shell device_config set_sync_disabled_for_tests persistent
5. adb shell stop && adb shell start
6. Still see "zygote64: Using CollectorTypeCC GC."
7. adb shell pm compile -m speed-profile -f com.android.webview
8. See "dex2oat32: Using CollectorTypeCC GC."
9. adb reboot
10. See "zygote64: Using CollectorTypeCMC GC."
11. adb shell pm compile -m speed-profile -f com.android.webview
12. See "dex2oat32: Using CollectorTypeCMC GC."
Change-Id: I141b47697ece0bdb74f960b65e1fa4ca0892cc1b
Diffstat (limited to 'runtime/class_linker.cc')
0 files changed, 0 insertions, 0 deletions