summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver-inl.h
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2015-10-15 15:52:53 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-10-15 15:52:53 +0000
commit4f55fd25111217e37001958b7069fe03292ff1a4 (patch)
treebbf5555232c04d9dde9ad4198124247a6a767d2a /compiler/driver/compiler_driver-inl.h
parentbc6cb93b2607e584fccdfe4e05ae74aa94e9e463 (diff)
parentd57d454a11ac6f49eaa397ec14d6231e3a2727b7 (diff)
Merge "Allocate dex cache arrays in their class loader's linear alloc"
Diffstat (limited to 'compiler/driver/compiler_driver-inl.h')
-rw-r--r--compiler/driver/compiler_driver-inl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver-inl.h b/compiler/driver/compiler_driver-inl.h
index e535afd272..1a7dbe3a9f 100644
--- a/compiler/driver/compiler_driver-inl.h
+++ b/compiler/driver/compiler_driver-inl.h
@@ -370,7 +370,9 @@ inline int CompilerDriver::IsFastInvoke(
nullptr, kVirtual);
} else {
StackHandleScope<1> hs(soa.Self());
- auto target_dex_cache(hs.NewHandle(class_linker->RegisterDexFile(*devirt_target->dex_file)));
+ auto target_dex_cache(hs.NewHandle(class_linker->RegisterDexFile(
+ *devirt_target->dex_file,
+ class_linker->GetOrCreateAllocatorForClassLoader(class_loader.Get()))));
called_method = class_linker->ResolveMethod(
*devirt_target->dex_file, devirt_target->dex_method_index, target_dex_cache,
class_loader, nullptr, kVirtual);