OSDN Git Service

Fix code for new malloc debug enable.
authorChristopher Ferris <cferris@google.com>
Wed, 28 Sep 2016 21:24:41 +0000 (14:24 -0700)
committerChristopher Ferris <cferris@google.com>
Thu, 29 Sep 2016 22:18:58 +0000 (15:18 -0700)
commite336eea49ad3c4480dfd33f0b6332e4c2683bbe0
tree4ed21e215edc2218822e8543845483133b02f835
parent1bca5ad2107d25ce5f1703cc973812654538b2b0
Fix code for new malloc debug enable.

When using am dumpheap -n, modify the code to print the new
way malloc debug works instead of the old way.

Also, the old code had a hard-coded number of backtrace frames. The
new code allows this to be variable so the code needed to be modified
for this too.

Test: am dumpheap -n <PID> <FILE> dumps properly.

Change-Id: Id79e4acbe04313090eb2b973f023e5b27591bb7d
core/jni/android_os_Debug.cpp