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>
Tue, 23 Feb 2016 00:18:39 +0000 (16:18 -0800)
commitac5fb70796f7fbf210e664992b052c05438939eb
tree310ee06bde98732e5149867133519a2d60c95759
parentf7e0d1afc0f80bf867834c7e46cc7c7af4eb719d
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

(cherry picked from commit a7deef9260bd53dfd6b51ace02b4e6200078d5ea)

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