OSDN Git Service

Make ScopedAssertNoThreadSuspension no overhead for non-debug
authorMathieu Chartier <mathieuc@google.com>
Tue, 13 Sep 2016 19:09:38 +0000 (12:09 -0700)
committerMathieu Chartier <mathieuc@google.com>
Tue, 13 Sep 2016 22:18:29 +0000 (15:18 -0700)
commit268764da8022cafa5661c5b514eaa343c5257e57
tree7c4b46847a6dcfac7a1492edd79b434fb1a0d6ea
parentf9decf915f6fa5b33fceba7c10c119e4cad481e5
Make ScopedAssertNoThreadSuspension no overhead for non-debug

Previously it required Thread::Current() which may not be free.
The plan is to add a lot more ScopedAssertNoThreadSuspension in
the codebase.

Also cleaned up callers.

Bug: 31458474
Change-Id: I5a1621a5435476504d22266cc01a9bf26aab7568
18 files changed:
compiler/driver/compiler_driver.cc
compiler/image_writer.cc
compiler/oat_writer.cc
runtime/art_method.cc
runtime/class_linker.cc
runtime/class_linker.h
runtime/debugger.cc
runtime/entrypoints/entrypoint_utils-inl.h
runtime/gc/heap.cc
runtime/instrumentation.cc
runtime/interpreter/interpreter_common.h
runtime/jit/jit.cc
runtime/jit/jit.h
runtime/mirror/class.cc
runtime/native/java_lang_Class.cc
runtime/reflection.cc
runtime/reflection.h
runtime/thread.h