diff options
| author | 2013-08-26 23:28:53 +0000 | |
|---|---|---|
| committer | 2013-08-26 23:28:53 +0000 | |
| commit | a2cb85a2bf6abc28a177f6b41ded01c55483baa1 (patch) | |
| tree | 3237b8353f2208a205eb06c9dc1796a5590a9b1b /compiler/driver/compiler_driver.h | |
| parent | e2be9da597c69b92ffb707f2101b96076578b5e6 (diff) | |
| parent | f6c4b3ba3825de1dbb3e747a68b809c6cc8eb4db (diff) | |
Merge "New arena memory allocator." into dalvik-dev
Diffstat (limited to 'compiler/driver/compiler_driver.h')
| -rw-r--r-- | compiler/driver/compiler_driver.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/driver/compiler_driver.h b/compiler/driver/compiler_driver.h index 22a510b86b..fa1b8f9854 100644 --- a/compiler/driver/compiler_driver.h +++ b/compiler/driver/compiler_driver.h @@ -26,6 +26,7 @@ #include "compiled_class.h" #include "compiled_method.h" #include "dex_file.h" +#include "dex/arena_allocator.h" #include "instruction_set.h" #include "invoke_type.h" #include "method_reference.h" @@ -213,6 +214,9 @@ class CompilerDriver { support_boot_image_fixup_ = support_boot_image_fixup; } + ArenaPool& GetArenaPool() { + return arena_pool_; + } bool WriteElf(const std::string& android_root, bool is_host, @@ -423,6 +427,9 @@ class CompilerDriver { pthread_key_t tls_key_; + // Arena pool used by the compiler. + ArenaPool arena_pool_; + typedef void (*CompilerEnableAutoElfLoadingFn)(CompilerDriver& driver); CompilerEnableAutoElfLoadingFn compiler_enable_auto_elf_loading_; |