summaryrefslogtreecommitdiff
path: root/compiler/llvm
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2013-09-05 11:01:30 -0700
committer Ian Rogers <irogers@google.com> 2013-09-05 11:01:30 -0700
commitd133b97b1ccae88f6ee7040e288fd7a239ee4492 (patch)
treebddc00cebe8745ec7524f489063f84f5d5d7d2cd /compiler/llvm
parent0e5b21018c350b5704fe1e59fe286eb342a9fa9a (diff)
Shard dedupe set locks.
We're seeing contention during compilation on the dedupe locks, sharding 4 ways on an occam brings down contention by > 5x. Improve dedupe hash function to have a FNV hash function at its heart. Improve naming of dedupe locks. Tidy portable JNI compiler paramters to be pointers, given that's their primary use. Change-Id: I95d905f2ca5fee4e83a0034926a5f6501b4aeb79
Diffstat (limited to 'compiler/llvm')
-rw-r--r--compiler/llvm/compiler_llvm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/llvm/compiler_llvm.cc b/compiler/llvm/compiler_llvm.cc
index fd440d5bf0..83b0c75e04 100644
--- a/compiler/llvm/compiler_llvm.cc
+++ b/compiler/llvm/compiler_llvm.cc
@@ -164,7 +164,7 @@ CompileNativeMethod(DexCompilationUnit* dex_compilation_unit) {
UniquePtr<LlvmCompilationUnit> cunit(AllocateCompilationUnit());
UniquePtr<JniCompiler> jni_compiler(
- new JniCompiler(cunit.get(), *compiler_driver_, dex_compilation_unit));
+ new JniCompiler(cunit.get(), compiler_driver_, dex_compilation_unit));
return jni_compiler->Compile();
}