diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2019-06-26 22:00:02 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2019-06-26 22:00:38 +0000 |
commit | 2fef66b294417d447630f9d98de68227eef476d3 (patch) | |
tree | 59fc4ea6cf13217eb92fbdd4e39561b5ad518cf0 /compiler/optimizing/instruction_builder.cc | |
parent | 21d5994583c679cd5d8573b5d35dbd659bdca2c7 (diff) |
Revert "Make the JIT zygote memory shared."
This reverts commit 05f87217ddc9b4b9186710c0135b918f456c5aef.
Bug: 119800099
Bug: 136110523
Reason for revert: testWebview flaking
Change-Id: I96afa6bc9c56c4aaf5ed72ae370f6f69c096c559
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
-rw-r--r-- | compiler/optimizing/instruction_builder.cc | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/compiler/optimizing/instruction_builder.cc b/compiler/optimizing/instruction_builder.cc index f8f813e3fd..5e7b57523f 100644 --- a/compiler/optimizing/instruction_builder.cc +++ b/compiler/optimizing/instruction_builder.cc @@ -29,7 +29,6 @@ #include "driver/dex_compilation_unit.h" #include "driver/compiler_options.h" #include "imtable-inl.h" -#include "jit/jit.h" #include "mirror/dex_cache.h" #include "oat_file.h" #include "optimizing_compiler_stats.h" @@ -1291,20 +1290,15 @@ bool HInstructionBuilder::IsInitialized(Handle<mirror::Class> cls) const { // Check if the class will be initialized at runtime. if (cls->IsInitialized()) { Runtime* runtime = Runtime::Current(); - if (runtime->IsAotCompiler()) { - // Assume loaded only if klass is in the boot image. App classes cannot be assumed - // loaded because we don't even know what class loader will be used to load them. - if (IsInBootImage(cls.Get(), code_generator_->GetCompilerOptions())) { - return true; - } - } else { + if (!runtime->IsAotCompiler()) { DCHECK(runtime->UseJitCompilation()); - if (Runtime::Current()->GetJit()->CanAssumeInitialized( - cls.Get(), - graph_->IsCompilingForSharedJitCode())) { - // For JIT, the class cannot revert to an uninitialized state. - return true; - } + // For JIT, the class cannot revert to an uninitialized state. + return true; + } + // Assume loaded only if klass is in the boot image. App classes cannot be assumed + // loaded because we don't even know what class loader will be used to load them. + if (IsInBootImage(cls.Get(), code_generator_->GetCompilerOptions())) { + return true; } } |