summaryrefslogtreecommitdiffstats
path: root/vm/compiler/codegen/x86
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-03-01 10:45:01 -0800
committerElliott Hughes <enh@google.com>2013-03-01 10:45:01 -0800
commit095469786603fe53b26ab78091ab33535f94b423 (patch)
treeeae531a918e55b4b3e9676bd94e11ffd48469477 /vm/compiler/codegen/x86
parent1319ed83a94fd506e54a43d6cef8b6bb2295c525 (diff)
downloadandroid_dalvik-095469786603fe53b26ab78091ab33535f94b423.tar.gz
android_dalvik-095469786603fe53b26ab78091ab33535f94b423.tar.bz2
android_dalvik-095469786603fe53b26ab78091ab33535f94b423.zip
Fix -Xjitthreshold (for real this time).
My previous "fix" (c89d83e1c05979b68037ad15413fa4460a88e36f) had the conditions reversed, so you _had_ to use -Xjitthreshold to get a non-zero threshold, but when you did, you'd get the default instead of what you asked for! This was spotted by the jank tests. Bug: 8285558 Bug: https://code.google.com/p/android/issues/detail?id=52017 Change-Id: I28270f2573d46929eb10d30789fecf7d5a8cea75
Diffstat (limited to 'vm/compiler/codegen/x86')
-rw-r--r--vm/compiler/codegen/x86/CodegenInterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/compiler/codegen/x86/CodegenInterface.cpp b/vm/compiler/codegen/x86/CodegenInterface.cpp
index 6670bda6d..e7dd8afc0 100644
--- a/vm/compiler/codegen/x86/CodegenInterface.cpp
+++ b/vm/compiler/codegen/x86/CodegenInterface.cpp
@@ -64,7 +64,7 @@ bool dvmCompilerArchInit() {
/* Target-specific configuration */
gDvmJit.jitTableSize = 1 << 12;
gDvmJit.jitTableMask = gDvmJit.jitTableSize - 1;
- if (gDvmJit.threshold != 0) {
+ if (gDvmJit.threshold == 0) {
gDvmJit.threshold = 255;
}
gDvmJit.codeCacheSize = 512*1024;