Propagate 'this_object' for method unwind event.
Propagates the 'this_object' to InstrumentationListener::MethodUnwind callback.
Change-Id: I12561f1a611b8399b94e669f9b8a6eaaf1a58631
diff --git a/runtime/instrumentation.cc b/runtime/instrumentation.cc
index 0f4fa4e..2ff3c8d 100644
--- a/runtime/instrumentation.cc
+++ b/runtime/instrumentation.cc
@@ -501,7 +501,7 @@
uint32_t dex_pc) const {
if (have_method_unwind_listeners_) {
for (InstrumentationListener* listener : method_unwind_listeners_) {
- listener->MethodUnwind(thread, method, dex_pc);
+ listener->MethodUnwind(thread, this_object, method, dex_pc);
}
}
}