diff options
| author | 2018-05-25 12:43:17 +0000 | |
|---|---|---|
| committer | 2018-05-25 12:43:17 +0000 | |
| commit | a326807d1ac1e37798c928911777c9d7c1d7ab4d (patch) | |
| tree | d1d60c9c0ded7b8c99977c19830225218d55ff3e /compiler/optimizing/optimizing_compiler.cc | |
| parent | 8967547e8d27e63332839540a8b0f53f0d95b46c (diff) | |
| parent | c7aa87e1666ac48ddf9149cfdfd64b026b3969e5 (diff) | |
Merge changes Iaf172f37,I15a8ade7,Icbc6b62b
* changes:
Remove static_class_ from Method/VarHandle and CallSite.
Remove PrimitiveArray<T>::array_class_.
Refactor ClassRoot/GetClassRoot().
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
| -rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index c4977decd9..79ac6b9b9d 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -31,6 +31,7 @@ #include "base/scoped_arena_allocator.h" #include "base/timing_logger.h" #include "builder.h" +#include "class_root.h" #include "code_generator.h" #include "compiled_method.h" #include "compiler.h" @@ -1309,13 +1310,12 @@ bool OptimizingCompiler::JitCompile(Thread* self, size_t method_info_size = 0; codegen->ComputeStackMapAndMethodInfoSize(&stack_map_size, &method_info_size); size_t number_of_roots = codegen->GetNumberOfJitRoots(); - ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); // We allocate an object array to ensure the JIT roots that we will collect in EmitJitRoots // will be visible by the GC between EmitLiterals and CommitCode. Once CommitCode is // executed, this array is not needed. Handle<mirror::ObjectArray<mirror::Object>> roots( hs.NewHandle(mirror::ObjectArray<mirror::Object>::Alloc( - self, class_linker->GetClassRoot(ClassLinker::kObjectArrayClass), number_of_roots))); + self, GetClassRoot<mirror::ObjectArray<mirror::Object>>(), number_of_roots))); if (roots == nullptr) { // Out of memory, just clear the exception to avoid any Java exception uncaught problems. MaybeRecordStat(compilation_stats_.get(), MethodCompilationStat::kJitOutOfMemoryForCommit); |