summaryrefslogtreecommitdiffstats
path: root/runtime/oat_file_assistant_test.cc
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2015-03-17 16:01:11 -0700
committerHiroshi Yamauchi <yamauchi@google.com>2015-03-17 16:01:11 -0700
commit3dbf23412481c4da51f0ebe32bec5d300c36834b (patch)
treea900023a52b868f7776f6c92ced3201cc691fb8a /runtime/oat_file_assistant_test.cc
parentcadf090da2dc91a3d6b842324e85f12ea6fef2ef (diff)
downloadart-3dbf23412481c4da51f0ebe32bec5d300c36834b.tar.gz
art-3dbf23412481c4da51f0ebe32bec5d300c36834b.tar.bz2
art-3dbf23412481c4da51f0ebe32bec5d300c36834b.zip
Fix oat_file_assistant_test32 flaky failures with GSS collector.
Bug: 19800031 Change-Id: I5146fa4e6a79bad94762102a50956c31251dcd2a
Diffstat (limited to 'runtime/oat_file_assistant_test.cc')
-rw-r--r--runtime/oat_file_assistant_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/oat_file_assistant_test.cc b/runtime/oat_file_assistant_test.cc
index 71679ae480..be8652cec5 100644
--- a/runtime/oat_file_assistant_test.cc
+++ b/runtime/oat_file_assistant_test.cc
@@ -203,7 +203,9 @@ class OatFileAssistantTest : public CommonRuntimeTest {
// Ensure a chunk of memory is reserved for the image space.
uintptr_t reservation_start = ART_BASE_ADDRESS + ART_BASE_ADDRESS_MIN_DELTA;
uintptr_t reservation_end = ART_BASE_ADDRESS + ART_BASE_ADDRESS_MAX_DELTA
- + 100 * 1024 * 1024;
+ // Include the main space that has to come right after the
+ // image in case of the GSS collector.
+ + 384 * MB;
std::string error_msg;
std::unique_ptr<BacktraceMap> map(BacktraceMap::Create(getpid(), true));