diff options
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
| -rw-r--r-- | src/compiler_llvm/compiler_llvm.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc index c5e620b859..5ef171088d 100644 --- a/src/compiler_llvm/compiler_llvm.cc +++ b/src/compiler_llvm/compiler_llvm.cc @@ -255,7 +255,10 @@ extern "C" art::CompiledMethod* ArtJniCompileMethod(art::Compiler& compiler, class_loader, class_linker, dex_file, *dex_cache, NULL, method_idx, access_flags); - return compiler.GetCompilerLLVM()->CompileNativeMethod(&oat_compilation_unit); + art::CompiledMethod* result = + compiler.GetCompilerLLVM()->CompileNativeMethod(&oat_compilation_unit); + compiler.GetCompilerLLVM()->MaterializeIfThresholdReached(); + return result; } extern "C" art::CompiledInvokeStub* ArtCreateInvokeStub(art::Compiler& compiler, bool is_static, @@ -270,11 +273,6 @@ extern "C" void compilerLLVMMaterializeRemainder(art::Compiler& compiler) { compiler.GetCompilerLLVM()->MaterializeRemainder(); } -extern "C" void compilerLLVMMaterializeIfThresholdReached(art::Compiler& compiler) { - ensureCompilerLLVM(compiler); - compiler.GetCompilerLLVM()->MaterializeIfThresholdReached(); -} - // Note: Using this function carefully!!! This is temporary solution, we will remove it. extern "C" art::MutexLock* compilerLLVMMutexLock(art::Compiler& compiler) { ensureCompilerLLVM(compiler); |