summaryrefslogtreecommitdiff
path: root/runtime/art_method.cc
diff options
context:
space:
mode:
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) {