ART: Add VLOG to GenericJNI
Add a VLOG(third_party_jni) that details the call, that is, print
the Java method and the target's address.
Bug: 128869974
Test: m test-art-host
Change-Id: I335115924c0f040d939f3bb55237f7e253b7a549
diff --git a/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc b/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
index 2758a8d..160dff1 100644
--- a/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
+++ b/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
@@ -2476,6 +2476,11 @@
}
#endif
+ VLOG(third_party_jni) << "GenericJNI: "
+ << called->PrettyMethod()
+ << " -> "
+ << std::hex << reinterpret_cast<uintptr_t>(nativeCode);
+
// Return native code addr(lo) and bottom of alloca address(hi).
return GetTwoWordSuccessValue(reinterpret_cast<uintptr_t>(visitor.GetBottomOfUsedArea()),
reinterpret_cast<uintptr_t>(nativeCode));