OSDN Git Service

Improve the heap verifier's failure report.
authorCarl Shapiro <cshapiro@google.com>
Fri, 27 Aug 2010 22:21:13 +0000 (15:21 -0700)
committerCarl Shapiro <cshapiro@google.com>
Thu, 2 Sep 2010 01:37:38 +0000 (18:37 -0700)
commitc44bca6530787454ee794cf2f83c1c6671a93aa8
tree9597da792977d565df98e5e9bdccb038927f657c
parent57ee270b755271166b2349321e5b8b5457731dd7
Improve the heap verifier's failure report.

Previously, when a reference verify failed we would print the location
of the bad reference and abort.  With this change, when a reference
fails to verify we try to print out more context.  First, we dump the
object which contains the bad references and print each reference that
failed verification.  Following that, we scan the roots and the heap
and print all of the objects which reference the bad object.
vm/alloc/Verify.c