OSDN Git Service

Fix method tracing from command-line
authorSebastien Hertz <shertz@google.com>
Tue, 17 Dec 2013 09:42:03 +0000 (10:42 +0100)
committerSebastien Hertz <shertz@google.com>
Wed, 9 Jul 2014 14:10:45 +0000 (16:10 +0200)
commitbae182cbc6adc8796154162a87fc54ae804e0469
treed5c1fdb048edab194e948e4e90bff66703c5f55e
parent0c1734665c38b3116e38a90ad06c3f152d9316c5
Fix method tracing from command-line

Transitions current thread to the new kWaitingForMethodTracingStart thread
state when starting method tracing.

Ensures there is a current thread when method tracing is stopped due to runtime
shutdown. If the current thread has been detached, we now re-attach it.
Note: we only do this if method tracing has been activated from command-line.

Fixes instrumentation when forcing interpreter mode (-Xint) with method tracing
enabled.

Removes unused parameter from UnsafeLogFatalForThreadSuspendAllTimeout.

Bug: https://code.google.com/p/android/issues/detail?id=72094
Bug: 11683397
Change-Id: I70f000fb46ddd95d6ad51ea0a8eee77697a045e9
runtime/debugger.cc
runtime/instrumentation.cc
runtime/native/java_lang_Thread.cc
runtime/runtime.cc
runtime/thread_list.cc
runtime/thread_state.h
runtime/trace.h
test/304-method-tracing/expected.txt [new file with mode: 0644]
test/304-method-tracing/info.txt [new file with mode: 0644]
test/304-method-tracing/run [new file with mode: 0755]
test/304-method-tracing/src/Main.java [new file with mode: 0644]