Add extra dumping for native method JIT samples check
Try to get more info why this happens, it shouldn't be possible based
on the code.
Bug: 64740365
Test: mm
Change-Id: Ibde14324d3570c1abef81d3db97b8421af91d40d
diff --git a/runtime/jit/profile_saver.cc b/runtime/jit/profile_saver.cc
index 381e95f..af6a45f 100644
--- a/runtime/jit/profile_saver.cc
+++ b/runtime/jit/profile_saver.cc
@@ -356,7 +356,8 @@
sampled_methods->AddReference(method.GetDexFile(), method.GetDexMethodIndex());
}
} else {
- CHECK_EQ(method.GetCounter(), 0u);
+ CHECK_EQ(method.GetCounter(), 0u) << method.PrettyMethod()
+ << " access_flags=" << method.GetAccessFlags();
}
}
}