summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/mem_map.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/mem_map.cc b/runtime/mem_map.cc
index 6a0c6d6dcd..9fef544abc 100644
--- a/runtime/mem_map.cc
+++ b/runtime/mem_map.cc
@@ -744,7 +744,9 @@ void* MemMap::MapInternal(void* addr,
off_t offset,
bool low_4gb) {
#ifdef __LP64__
+#ifndef __APPLE__
DCHECK_EQ(flags & MAP_32BIT, 0);
+#endif
// When requesting low_4g memory and having an expectation, the requested range should fit into
// 4GB.
if (low_4gb && (