From 736b560f2d2c89b63dc895888c671b5519afa4c8 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Wed, 2 Sep 2015 14:54:11 -0700 Subject: Reduce how often we call FindDexCache Before host boot.oat -j4 optimizing compile: real 1m17.792s user 3m26.140s sys 0m8.340s After: real 1m12.324s user 3m22.718s sys 0m8.320s Change-Id: If18e9e79e06cdf1676692e5efacb682bf93889c3 --- compiler/driver/compiler_driver-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/driver/compiler_driver-inl.h') diff --git a/compiler/driver/compiler_driver-inl.h b/compiler/driver/compiler_driver-inl.h index 8f1987a7db..e535afd272 100644 --- a/compiler/driver/compiler_driver-inl.h +++ b/compiler/driver/compiler_driver-inl.h @@ -34,7 +34,7 @@ inline mirror::DexCache* CompilerDriver::GetDexCache(const DexCompilationUnit* m return mUnit->GetClassLinker()->FindDexCache(Thread::Current(), *mUnit->GetDexFile(), false); } -inline mirror::ClassLoader* CompilerDriver::GetClassLoader(ScopedObjectAccess& soa, +inline mirror::ClassLoader* CompilerDriver::GetClassLoader(const ScopedObjectAccess& soa, const DexCompilationUnit* mUnit) { return soa.Decode(mUnit->GetClassLoader()); } -- cgit v1.2.3-59-g8ed1b