OSDN Git Service

Print more info in MarkSweep::VerifyRoot
authorMathieu Chartier <mathieuc@google.com>
Wed, 14 Jan 2015 22:55:47 +0000 (14:55 -0800)
committerMathieu Chartier <mathieuc@google.com>
Thu, 15 Jan 2015 18:19:29 +0000 (10:19 -0800)
commit12f7423a2bb4bfab76700d84eb6d4338d211983a
tree1c4b45aa3c80879a5fff124aa4ec1cb68133275c
parent300dee9ff2c4ce59e821d0aeceb87fab13295f46
Print more info in MarkSweep::VerifyRoot

Refactored old root callback to use a new class called RootInfo.
RootInfo contains all the relevant info related to the root
associated with the callback. The MarkSweep::VerifyRoot function
now uses this info to print the StackVisitor's described location
if the GC root is of the type kRootJavaFrame.

Some other cleanup.

Example output:
E/art     (12167): Tried to mark 0x123 not contained by any spaces
E/art     (12167): Attempting see if it's a bad root
E/art     (12167): Found invalid root: 0x123 with type RootJavaFrame
E/art     (12167): Location=Visiting method
'void java.lang.Runtime.gc()' at dex PC 0xffffffff (native PC 0x0)
vreg=0

Bug: 18588862
Change-Id: Ic5a2781f704e931265ffb3621c2eab4b2e25f60f
42 files changed:
runtime/Android.mk
runtime/class_linker.cc
runtime/class_linker_test.cc
runtime/debugger.cc
runtime/debugger.h
runtime/gc/collector/mark_compact.cc
runtime/gc/collector/mark_compact.h
runtime/gc/collector/mark_sweep.cc
runtime/gc/collector/mark_sweep.h
runtime/gc/collector/semi_space.cc
runtime/gc/collector/semi_space.h
runtime/gc/heap.cc
runtime/gc_root.h
runtime/hprof/hprof.cc
runtime/indirect_reference_table.cc
runtime/indirect_reference_table.h
runtime/instrumentation.cc
runtime/intern_table.cc
runtime/jni_internal.cc
runtime/mirror/array-inl.h
runtime/mirror/art_field.cc
runtime/mirror/art_method.cc
runtime/mirror/class.cc
runtime/mirror/reference.cc
runtime/mirror/stack_trace_element.cc
runtime/mirror/string.cc
runtime/mirror/throwable.cc
runtime/native/dalvik_system_VMRuntime.cc
runtime/object_callbacks.h
runtime/reference_table.cc
runtime/reference_table.h
runtime/runtime.cc
runtime/stack.cc
runtime/stack.h
runtime/thread.cc
runtime/thread_list.cc
runtime/thread_list.h
runtime/throw_location.cc
runtime/throw_location.h
runtime/transaction.cc
runtime/transaction.h
runtime/verifier/reg_type.cc