diff options
author | Andreas Gampe <agampe@google.com> | 2019-03-28 10:55:50 -0700 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2019-04-02 16:39:07 +0000 |
commit | 21a6ec5a5e9d392e33e4febffaa581da4d4855f2 (patch) | |
tree | f15a490e54d1076765c558583dc0447ce4e60952 | |
parent | 9298875403a470320c7e6a7731522f78583ca124 (diff) | |
download | art-21a6ec5a5e9d392e33e4febffaa581da4d4855f2.tar.gz art-21a6ec5a5e9d392e33e4febffaa581da4d4855f2.tar.bz2 art-21a6ec5a5e9d392e33e4febffaa581da4d4855f2.zip |
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
-rw-r--r-- | runtime/entrypoints/quick/quick_trampoline_entrypoints.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc b/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc index 2758a8d142..160dff1c79 100644 --- a/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc +++ b/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc @@ -2476,6 +2476,11 @@ extern "C" TwoWordReturn artQuickGenericJniTrampoline(Thread* self, ArtMethod** } #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)); |