diff options
author | Ben Cheng <bccheng@google.com> | 2010-02-28 01:40:23 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-02-28 01:40:23 -0800 |
commit | a2ed5a74660ea3cb48200190d51a48eda5e688c7 (patch) | |
tree | 85c2031c5a53f939e240d36321c67e76a7ffad37 /vm/compiler/Compiler.c | |
parent | f19398eb0d0f29895b7e1220200789c374307d42 (diff) | |
parent | 88a0f970e47dc0091d2c9965aa9bd06667e5f4b7 (diff) | |
download | android_dalvik-a2ed5a74660ea3cb48200190d51a48eda5e688c7.tar.gz android_dalvik-a2ed5a74660ea3cb48200190d51a48eda5e688c7.tar.bz2 android_dalvik-a2ed5a74660ea3cb48200190d51a48eda5e688c7.zip |
am 88a0f970: Enhance the jit profiler to print more statistics and be more verbose.
Merge commit '88a0f970e47dc0091d2c9965aa9bd06667e5f4b7' into dalvik-dev
* commit '88a0f970e47dc0091d2c9965aa9bd06667e5f4b7':
Enhance the jit profiler to print more statistics and be more verbose.
Diffstat (limited to 'vm/compiler/Compiler.c')
-rw-r--r-- | vm/compiler/Compiler.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vm/compiler/Compiler.c b/vm/compiler/Compiler.c index 829713144..a353b867c 100644 --- a/vm/compiler/Compiler.c +++ b/vm/compiler/Compiler.c @@ -532,6 +532,12 @@ void dvmCompilerShutdown(void) { void *threadReturn; + if (gDvm.verboseShutdown) { + dvmCompilerDumpStats(); + while (gDvmJit.compilerQueueLength) + sleep(5); + } + if (gDvmJit.compilerHandle) { gDvmJit.haltCompilerThread = true; @@ -546,9 +552,6 @@ void dvmCompilerShutdown(void) LOGD("Compiler thread has shut down\n"); } - if (gDvm.verboseShutdown) - dvmCompilerDumpStats(); - dvmDestroyMutex(&gDvmJit.tableLock); dvmDestroyMutex(&gDvmJit.compilerLock); dvmDestroyMutex(&gDvmJit.compilerICPatchLock); |