summaryrefslogtreecommitdiff
path: root/runtime/jit/jit.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/jit/jit.h')
-rw-r--r--runtime/jit/jit.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/runtime/jit/jit.h b/runtime/jit/jit.h
index e06a6e04b7..e6c93aac65 100644
--- a/runtime/jit/jit.h
+++ b/runtime/jit/jit.h
@@ -65,16 +65,13 @@ static constexpr int kJitPoolThreadPthreadDefaultPriority = 9;
// 19 is the lowest background priority on device.
// See android/os/Process.java.
static constexpr int kJitZygotePoolThreadPthreadDefaultPriority = 19;
-// We check whether to jit-compile the method every Nth invoke.
-// The tests often use threshold of 1000 (and thus 500 to start profiling).
-static constexpr uint32_t kJitSamplesBatchSize = 512; // Must be power of 2.
class JitOptions {
public:
static JitOptions* CreateFromRuntimeArguments(const RuntimeArgumentMap& options);
- uint16_t GetCompileThreshold() const {
- return compile_threshold_;
+ uint16_t GetOptimizeThreshold() const {
+ return optimize_threshold_;
}
uint16_t GetWarmupThreshold() const {
@@ -143,7 +140,7 @@ class JitOptions {
void SetJitAtFirstUse() {
use_jit_compilation_ = true;
- compile_threshold_ = 0;
+ optimize_threshold_ = 0;
}
void SetUseBaselineCompiler() {
@@ -164,7 +161,7 @@ class JitOptions {
bool use_baseline_compiler_;
size_t code_cache_initial_capacity_;
size_t code_cache_max_capacity_;
- uint32_t compile_threshold_;
+ uint32_t optimize_threshold_;
uint32_t warmup_threshold_;
uint32_t osr_threshold_;
uint16_t priority_thread_weight_;
@@ -180,7 +177,7 @@ class JitOptions {
use_baseline_compiler_(false),
code_cache_initial_capacity_(0),
code_cache_max_capacity_(0),
- compile_threshold_(0),
+ optimize_threshold_(0),
warmup_threshold_(0),
osr_threshold_(0),
priority_thread_weight_(0),
@@ -286,7 +283,7 @@ class Jit {
}
uint16_t HotMethodThreshold() const {
- return options_->GetCompileThreshold();
+ return options_->GetOptimizeThreshold();
}
uint16_t WarmMethodThreshold() const {