summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Stefani <luca.stefani.ge1@gmail.com>2020-06-09 12:39:41 +0200
committerLuca Stefani <luca.stefani.ge1@gmail.com>2020-06-09 12:39:46 +0200
commitfc405947d9dee5c8fcbdacd0a0e3dc477db064f4 (patch)
treef3b73f5143c7bca2dda2d30a8b3e2c9d5403cd23
parentc35d20b4a5904319a466e8dc2ea5a1541a4d5dcd (diff)
downloadart-lineage-17.1.tar.gz
art-lineage-17.1.tar.bz2
art-lineage-17.1.zip
Revert "Protect/Unprotect regions (region space) only in debug build"lineage-17.1
* Let's no diverge from ten This reverts commit 1a3963040c643ddbdb5a4773c9bcdc13f4968857. Change-Id: I30e002d851fcb6ebd9ed88dc5e196a5082cd1501
-rw-r--r--runtime/gc/space/region_space.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/space/region_space.cc b/runtime/gc/space/region_space.cc
index 4329a379fc..823043ec75 100644
--- a/runtime/gc/space/region_space.cc
+++ b/runtime/gc/space/region_space.cc
@@ -33,7 +33,7 @@ namespace space {
static constexpr uint kEvacuateLivePercentThreshold = 75U;
// Whether we protect the unused and cleared regions.
-static constexpr bool kProtectClearedRegions = kIsDebugBuild;
+static constexpr bool kProtectClearedRegions = true;
// Wether we poison memory areas occupied by dead objects in unevacuated regions.
static constexpr bool kPoisonDeadObjectsInUnevacuatedRegions = true;