summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2014-08-14 16:20:34 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-08-13 16:51:59 +0000
commit7469b6c96a7f67c9a230faede204ef6bf62b1596 (patch)
treec7c48cf0294dcadd579f3d1e5260a36e44bf5953
parent0e084053066d9d8d362c130009e9234baea12e34 (diff)
parent3cd86d607cb53e22a90ef43bf7d5a4f93f6c5575 (diff)
Merge "The image for writing needn't be in low 4GB."
-rw-r--r--compiler/image_writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/image_writer.cc b/compiler/image_writer.cc
index ba7e13f815..9c9cdf2700 100644
--- a/compiler/image_writer.cc
+++ b/compiler/image_writer.cc
@@ -232,7 +232,7 @@ bool ImageWriter::AllocMemory() {
size_t length = RoundUp(Runtime::Current()->GetHeap()->GetTotalMemory(), kPageSize);
std::string error_msg;
image_.reset(MemMap::MapAnonymous("image writer image", NULL, length, PROT_READ | PROT_WRITE,
- true, &error_msg));
+ false, &error_msg));
if (UNLIKELY(image_.get() == nullptr)) {
LOG(ERROR) << "Failed to allocate memory for image file generation: " << error_msg;
return false;