From 673ed3d8aedc5462a47ded827c99f35d46525457 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Fri, 28 Aug 2015 14:56:43 -0700 Subject: Revert "Revert "Change dex caches to be weak roots"" This reverts commit 81a9087f0df0518c39405b7d18ba5858a6d8b77b. Boot.oat creation time goes from 4.7s to 4.9s on host due to extra locking. Will try to improve this in another CL. Bug: 23602225 Bug: 22720414 Change-Id: I7e25b75cfb63faa196c7b0f60e46cce50bf12021 --- compiler/optimizing/optimizing_compiler.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/optimizing/optimizing_compiler.cc') diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 1db3063aec..6f251e8e6c 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -714,7 +714,8 @@ CompiledMethod* OptimizingCompiler::TryCompile(const DexFile::CodeItem* code_ite ScopedObjectAccess soa(Thread::Current()); StackHandleScope<4> hs(soa.Self()); ClassLinker* class_linker = dex_compilation_unit.GetClassLinker(); - Handle dex_cache(hs.NewHandle(class_linker->FindDexCache(dex_file))); + Handle dex_cache(hs.NewHandle(class_linker->FindDexCache( + soa.Self(), dex_file))); Handle loader(hs.NewHandle( soa.Decode(class_loader))); ArtMethod* art_method = compiler_driver->ResolveMethod( -- cgit v1.2.3-59-g8ed1b