diff options
| author | 2012-10-11 14:46:06 -0700 | |
|---|---|---|
| committer | 2012-10-11 15:33:23 -0700 | |
| commit | 4df2bbdfe6602ce5f141b7b44028b95faa0bd8ef (patch) | |
| tree | 9c23dad1023ccd1bf710825e6115892291232dae /src/compiler_llvm/compilation_unit.h | |
| parent | 1aae273f8827bcbfff6b00c5babd77a111852272 (diff) | |
Enable multi-threaded Quick compilation
Reuse thread-local copies of llvm context data for Quick compiler
(while continuing to regenerate fresh ones per method for Portable).
This is a transitional CL - the upcoming compiler driver change
is expected to pass pass a thread context structure to each compiler
worker thread rather than use the pthread_key mechanism.
Change-Id: I277920a5c2705748c3a9f37ceace53c903747ec2
Diffstat (limited to 'src/compiler_llvm/compilation_unit.h')
| -rw-r--r-- | src/compiler_llvm/compilation_unit.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler_llvm/compilation_unit.h b/src/compiler_llvm/compilation_unit.h index c4fbae411b..6ad7ee1ad0 100644 --- a/src/compiler_llvm/compilation_unit.h +++ b/src/compiler_llvm/compilation_unit.h @@ -91,8 +91,8 @@ class CompilationUnit { } #if defined(ART_USE_QUICK_COMPILER) - QuickCompiler* GetQuickContext() const { - return quick_ctx_.get(); + LLVMInfo* GetQuickContext() const { + return llvm_info_.get(); } void SetCompiler(Compiler* compiler) { compiler_ = compiler; @@ -125,7 +125,7 @@ class CompilationUnit { greenland::DexLang::Context* dex_lang_ctx_; #endif #if defined(ART_USE_QUICK_COMPILER) - UniquePtr<QuickCompiler> quick_ctx_; + UniquePtr<LLVMInfo> llvm_info_; Compiler* compiler_; OatCompilationUnit* oat_compilation_unit_; #endif |