OSDN Git Service

Make --debuggable rely on JIT code.
authorNicolas Geoffray <ngeoffray@google.com>
Tue, 20 Dec 2016 13:57:43 +0000 (13:57 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Mon, 30 Jan 2017 12:41:52 +0000 (12:41 +0000)
commita0619e25aacf8b8074132f4951f75fdbcfd42925
treedddc053886464b99be29b9ca69039d74d49605ca
parentca21dc47adeed92a15a9d3fd090bdd0e6654679c
Make --debuggable rely on JIT code.

Removes -Xfully-deoptable in the process, which was added as a
temporary workaround until this CL.
Partial revert of https://android-review.googlesource.com/#/c/302232/

Makes things consistent with existing infrastructure:

- Parse the --debuggable from the compiler options, just like
  --compiler-filter.

- Add DEBUG_JAVA_DEBUGGABLE, passed by the zygote, for debuggable apps.

- Java debuggable now solely relies on JIT for simplicity.

- Debugging under userdebug for non-java-debuggable apps is still
  best effort.

Test: test-art-host, jdwp

bug: 28769520
Change-Id: Id0593aacd85b9780da97f20914a50943957c858f
20 files changed:
compiler/jit/jit_compiler.cc
dex2oat/dex2oat_test.cc
runtime/class_linker.cc
runtime/debugger.cc
runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
runtime/instrumentation.cc
runtime/instrumentation.h
runtime/jit/jit_code_cache.cc
runtime/native/dalvik_system_ZygoteHooks.cc
runtime/oat_file_assistant.cc
runtime/parsed_options.cc
runtime/quick_exception_handler.cc
runtime/runtime.cc
runtime/runtime.h
runtime/runtime_options.def
runtime/thread.cc
test/466-get-live-vreg/get_live_vreg_jni.cc
test/909-attach-agent/run
test/Android.run-test.mk
test/etc/run-test-jar