diff options
| -rw-r--r-- | compiler/optimizing/code_generator.h | 2 | ||||
| -rw-r--r-- | runtime/oat_file.cc | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index 24e02773d8..12337c93de 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -143,7 +143,7 @@ class CodeGenerator : public ArenaObject { protected: CodeGenerator(HGraph* graph, size_t number_of_registers) : frame_size_(kUninitializedFrameSize), - core_spill_mask_(-1), + core_spill_mask_(0), graph_(graph), block_labels_(graph->GetArena(), 0), pc_infos_(graph->GetArena(), 32), diff --git a/runtime/oat_file.cc b/runtime/oat_file.cc index 7d9922d72a..50dfe2109f 100644 --- a/runtime/oat_file.cc +++ b/runtime/oat_file.cc @@ -534,7 +534,9 @@ const OatFile::OatMethod OatFile::OatClass::GetOatMethod(uint32_t method_index) methods_pointer_index = num_set_bits; } const OatMethodOffsets& oat_method_offsets = methods_pointer_[methods_pointer_index]; - if (oat_file_->IsExecutable() || Runtime::Current()->IsCompiler()) { + if (oat_file_->IsExecutable() + || (Runtime::Current() == nullptr) + || Runtime::Current()->IsCompiler()) { return OatMethod( oat_file_->Begin(), oat_method_offsets.code_offset_, |