summaryrefslogtreecommitdiff
path: root/runtime/art_method.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2021-11-15 14:02:07 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2021-11-24 14:04:12 +0000
commit58f916cd6ce9eaeba7b4dbb96c3c77d636f64be5 (patch)
tree7186d7b3da40f110f487abcb9574a2f848336b36 /runtime/art_method.cc
parent24d589eae75239486b512a8e624aee83bba0c315 (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/art_method.cc')
-rw-r--r--runtime/art_method.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/art_method.cc b/runtime/art_method.cc
index 2f8085c6c2..9dda50cdc9 100644
--- a/runtime/art_method.cc
+++ b/runtime/art_method.cc
@@ -752,9 +752,7 @@ void ArtMethod::CopyFrom(ArtMethod* src, PointerSize image_pointer_size) {
SetDataPtrSize(nullptr, image_pointer_size);
}
// Clear hotness to let the JIT properly decide when to compile this method.
- if (!IsAbstract()) {
- ResetCounter();
- }
+ ResetCounter(runtime->GetJITOptions()->GetWarmupThreshold());
}
bool ArtMethod::IsImagePointerSize(PointerSize pointer_size) {