OSDN Git Service

Fix a bug in hprof that corrupted the root set output.
authorCarl Shapiro <cshapiro@google.com>
Mon, 13 Dec 2010 20:13:47 +0000 (12:13 -0800)
committerCarl Shapiro <cshapiro@google.com>
Mon, 13 Dec 2010 20:19:22 +0000 (12:19 -0800)
commit8a69168b0e867c26b10b7ed0440322b4cb8db834
tree3218c519531519525b4ecd33106ab55e6a0c67ba
parent06d020698f7182ae17b933fa688ab9302a8674e2
Fix a bug in hprof that corrupted the root set output.

The root visitor takes an Object ** but the hprof output assumed an
Object *.  As such, bad root set object ids were written to the hprof
dump and, by extension, objects reachable only from the roots either
looked like floating garbage or were wholly omitted from the output.

Change-Id: I58b31b6ad145fa9843ecbda630ed8b6ab951d931
vm/hprof/Hprof.c