diff options
author | Andreas Gampe <agampe@google.com> | 2016-02-18 16:53:41 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2016-03-09 09:16:24 -0800 |
commit | 3f41a0193eadf037b4003c1996151f386ca07b13 (patch) | |
tree | 19e261ce06e5c5efe88d78188ef1d06b54ead9e8 /compiler/common_compiler_test.h | |
parent | 6e1564cfdf4f6b332ee6d156de6ff9712655fff6 (diff) |
ART: Use optimizing compiler in image_test
Expose some compiler options so we can run the image test with
the optimizing compiler without running into a stack overflow.
Also allow a variable amount of threads in CreateCompilerDriver.
Use 16 as a middle ground on the host to speed up the otherwise
now slowed-down test.
Bug: 27240085
Bug: 27552475
Change-Id: I8db5055d32ae722c8f430903244faa9166cc4886
Diffstat (limited to 'compiler/common_compiler_test.h')
-rw-r--r-- | compiler/common_compiler_test.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/common_compiler_test.h b/compiler/common_compiler_test.h index 7e0fbabff8..9552143080 100644 --- a/compiler/common_compiler_test.h +++ b/compiler/common_compiler_test.h @@ -93,7 +93,7 @@ class CommonCompilerTest : public CommonRuntimeTest { const char* method_name, const char* signature) SHARED_REQUIRES(Locks::mutator_lock_); - void CreateCompilerDriver(Compiler::Kind kind, InstructionSet isa); + void CreateCompilerDriver(Compiler::Kind kind, InstructionSet isa, size_t number_of_threads = 2U); void ReserveImageSpace(); |