summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/dfsan/dfsan.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/dfsan/dfsan.cc')
-rw-r--r--compiler-rt/lib/dfsan/dfsan.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/dfsan/dfsan.cc b/compiler-rt/lib/dfsan/dfsan.cc
index 8cd65f79981..8023d32630a 100644
--- a/compiler-rt/lib/dfsan/dfsan.cc
+++ b/compiler-rt/lib/dfsan/dfsan.cc
@@ -399,6 +399,8 @@ static void dfsan_fini() {
}
static void dfsan_init(int argc, char **argv, char **envp) {
+ CheckVMASize();
+
MmapFixedNoReserve(kShadowAddr, kUnusedAddr - kShadowAddr);
// Protect the region of memory we don't use, to preserve the one-to-one
OpenPOWER on IntegriCloud