diff options
| author | 2021-11-15 14:02:07 +0000 | |
|---|---|---|
| committer | 2021-11-24 14:04:12 +0000 | |
| commit | 58f916cd6ce9eaeba7b4dbb96c3c77d636f64be5 (patch) | |
| tree | 7186d7b3da40f110f487abcb9574a2f848336b36 /runtime/jit/jit-inl.h | |
| parent | 24d589eae75239486b512a8e624aee83bba0c315 (diff) | |
Replace the nterp threshold with the warmup threshold.
Replace a hardcoded value with one that can be changed at the command
line.
Test: test.py
Change-Id: I638da5b5cc2e56aa0857d2bf0862a2f8c2020949
Diffstat (limited to 'runtime/jit/jit-inl.h')
| -rw-r--r-- | runtime/jit/jit-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/jit/jit-inl.h b/runtime/jit/jit-inl.h index 683fc38e1b..32465f28fe 100644 --- a/runtime/jit/jit-inl.h +++ b/runtime/jit/jit-inl.h @@ -32,7 +32,7 @@ inline void Jit::AddSamples(Thread* self, ArtMethod* method) { return; } if (method->CounterIsHot()) { - method->ResetCounter(); + method->ResetCounter(Runtime::Current()->GetJITOptions()->GetWarmupThreshold()); EnqueueCompilation(method, self); } else { method->UpdateCounter(1); |