OSDN Git Service

Print the locker thread when waiting on an object
authorPal Szasz <pal.szasz@sonymobile.com>
Wed, 16 May 2012 12:45:26 +0000 (14:45 +0200)
committerJohan Redestig <johan.redestig@sonymobile.com>
Thu, 6 Dec 2012 07:13:32 +0000 (08:13 +0100)
commit5605832d8d8d1a5af1bf8590b7c8e10e8aa31269
tree26967cd026cb7588d8ef73b058a6a2e0f7be6a30
parentc83353bc0d7ddfedd3bc06fdb12f25710191e1e6
Print the locker thread when waiting on an object

When dumping stacktraces, and if one thread is blocked due to a call
to Object.wait, the dump will just tell us the object pointer it is
waiting on, but not the thread which actually locked the object.

This patch tries to extract that informatation as well.

Note that this information is not always available, since maybe no
other thread aquired the lock yet.

Change-Id: Id0ae23e17c58fc3712251f00b0a741191b5a5aee
vm/interp/Stack.cpp