OSDN Git Service

Visit stack trace roots
authorMathieu Chartier <mathieuc@google.com>
Mon, 22 Feb 2016 22:49:04 +0000 (14:49 -0800)
committerMathieu Chartier <mathieuc@google.com>
Mon, 22 Feb 2016 23:28:43 +0000 (15:28 -0800)
commita7deef9260bd53dfd6b51ace02b4e6200078d5ea
tree4f08e6d5bb4bafb7ce39356e80abcb926908e4d5
parenta5502e31cb558c6e257d1dd1889c073a793e3d9d
Visit stack trace roots

We need to visit the declaring classes of all the methods in the
allocation stack traces to prevent class unloading for these
methods. If the class gets unloaded, it will free the linear alloc
resulting in hprof crashing during dumping.

Also a bit of clean up.

Bug: 26849503

Change-Id: I5cc57436294e4399388cb497819148b8a3b973d9
runtime/gc/allocation_record.cc