OSDN Git Service

Use ObjPtr for reflection.cc/h/inl
authorMathieu Chartier <mathieuc@google.com>
Tue, 27 Sep 2016 01:13:17 +0000 (18:13 -0700)
committerMathieu Chartier <mathieuc@google.com>
Tue, 27 Sep 2016 23:10:35 +0000 (16:10 -0700)
commita59d9b228b1eda3bf71a81b6201ec64e26086c23
tree91adf9f0e282eec50ccb28aa2dbc432a5e28d13f
parent05ce52b406dcf6b9a24287d14f0e611211e0db3d
Use ObjPtr for reflection.cc/h/inl

Changed Pretty helpers to use this to reduce usage of Decode. The
eventual goal is not have almost any calls to ObjPtr::Decode.

Moved ObjPtr out of mirror namespace for convenience. Added more
PoisonObjectPointers calls in class linker, thread suspension.

Bug: 31113334

Test: test-art-host

Change-Id: I44d08db5143d95ed1b65e2f00f9749ef5cf379f7
21 files changed:
runtime/class_linker-inl.h
runtime/class_linker.cc
runtime/dex_file_annotations.cc
runtime/entrypoints/entrypoint_utils.cc
runtime/gc/heap-inl.h
runtime/handle.h
runtime/mirror/object-inl.h
runtime/mirror/object.h
runtime/mirror/object_test.cc
runtime/native/java_lang_Class.cc
runtime/native/java_lang_reflect_Constructor.cc
runtime/native/java_lang_reflect_Field.cc
runtime/obj_ptr-inl.h [new file with mode: 0644]
runtime/obj_ptr.h [moved from runtime/mirror/obj_ptr.h with 73% similarity]
runtime/reflection-inl.h
runtime/reflection.cc
runtime/reflection.h
runtime/thread-inl.h
runtime/thread.h
runtime/utils.cc
runtime/utils.h