Re-enable ART's region space memory protection on host.
Memory protection of unused regions was disabled on host because of
spurious errors due to old kernel issues on some machines. These
problems have presubmably been fixed since, so let's re-enable that
mechanism.
Test: art/test.py --host
Bug: 63131961
Bug: 74064045
Change-Id: Ieb03540fd205401a2b031e0d4c90444b5b2c8aed
diff --git a/runtime/gc/space/region_space.cc b/runtime/gc/space/region_space.cc
index 9c6a73c..6d494fa 100644
--- a/runtime/gc/space/region_space.cc
+++ b/runtime/gc/space/region_space.cc
@@ -31,8 +31,7 @@
static constexpr uint kEvacuateLivePercentThreshold = 75U;
// Whether we protect the unused and cleared regions.
-// Only protect for target builds to prevent flaky test failures (b/63131961).
-static constexpr bool kProtectClearedRegions = kIsTargetBuild;
+static constexpr bool kProtectClearedRegions = true;
// Wether we poison memory areas occupied by dead objects in unevacuated regions.
static constexpr bool kPoisonDeadObjectsInUnevacuatedRegions = true;