OSDN Git Service

Fix identifier size in the heap dump.
authorCalin Juravle <calin@google.com>
Fri, 4 Jul 2014 15:24:03 +0000 (16:24 +0100)
committerCalin Juravle <calin@google.com>
Thu, 17 Jul 2014 20:19:55 +0000 (21:19 +0100)
commitccc68d692c5d6ad54cb74163b8930182f9c87d3c
tree55d18075209fa455c83949a02470058da5456777
parentd07c9cddccd0476456a5340b716bce3f107013b0
Fix identifier size in the heap dump.

We're using addresses as IDs and previously we would have written
sizeof(void*) as the identifier size in the header. Heap references
are actually uint32_t so writting 4 bytes should be enough.

Bug: 16016862

(cherry picked from commit 3280517651195602253ed92a2749964e96cad27e)

Change-Id: I8b8a0f8d761314139ba01a8bc91c1a3db35b8ae9
runtime/hprof/hprof.cc