diff options
| author | 2016-01-28 20:15:55 +0000 | |
|---|---|---|
| committer | 2016-01-28 20:15:55 +0000 | |
| commit | de31ca62015e94016155a99a268ea798ab1ef75c (patch) | |
| tree | 90aa52e45dc14dfe8a6771094a14bce3caa74bd0 /runtime | |
| parent | 4047c5b3b00f015b81cb52da0cda545d6a3820c8 (diff) | |
| parent | c68e77b3e446e248ed025bfc756a0e83718918ad (diff) | |
Merge "Fix image test with GSS"
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/gc/heap.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc index 84483b4370..d76a8d149f 100644 --- a/runtime/gc/heap.cc +++ b/runtime/gc/heap.cc @@ -357,7 +357,11 @@ Heap::Heap(size_t initial_size, std::unique_ptr<MemMap> main_mem_map_2; // Gross hack to make dex2oat deterministic. - if (requested_alloc_space_begin == nullptr && Runtime::Current()->IsAotCompiler()) { + if (foreground_collector_type_ == kCollectorTypeMS && + requested_alloc_space_begin == nullptr && + Runtime::Current()->IsAotCompiler()) { + // Currently only enabled for MS collector since that is what the deterministic dex2oat uses. + // b/26849108 requested_alloc_space_begin = reinterpret_cast<uint8_t*>(kAllocSpaceBeginForDeterministicAoT); } uint8_t* request_begin = requested_alloc_space_begin; |