monitor: log actual tid instead of internal thread ID
Logging the tid of the thread holding the lock from the precise trace
slice makes automated trace analysis significantly easier.
Test: tid appears in trace slice
Change-Id: I586ad63c56b0f8ecd5d48d5803816e1bda46dc8b
diff --git a/runtime/monitor.cc b/runtime/monitor.cc
index 4e64c95..3fed8d4 100644
--- a/runtime/monitor.cc
+++ b/runtime/monitor.cc
@@ -472,7 +472,7 @@
Locks::thread_list_lock_->ExclusiveLock(self);
orig_owner = owner_.load(std::memory_order_relaxed);
if (orig_owner != nullptr) { // Did the owner_ give the lock up?
- const uint32_t orig_owner_thread_id = orig_owner->GetThreadId();
+ const uint32_t orig_owner_thread_id = orig_owner->GetTid();
GetLockOwnerInfo(&owners_method, &owners_dex_pc, orig_owner);
std::ostringstream oss;
std::string name;