summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compiler.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler.cc b/src/compiler.cc
index 97a35f0d42..7bec994604 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -837,7 +837,9 @@ void Compiler::GetCodeAndMethodForDirectCall(InvokeType type, InvokeType sharp_t
if (has_clinit_trampoline) {
return;
}
- stats_->DirectCallsToBoot(type);
+ if (sharp_type != kInterface) { // Interfaces always go via a trampoline.
+ stats_->DirectCallsToBoot(type);
+ }
stats_->DirectMethodsToBoot(type);
bool compiling_boot = Runtime::Current()->GetHeap()->GetSpaces().size() == 1;
if (compiling_boot) {