From 095469786603fe53b26ab78091ab33535f94b423 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 1 Mar 2013 10:45:01 -0800 Subject: 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 --- vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp') diff --git a/vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp b/vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp index bc827beac..713ecfa10 100644 --- a/vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp +++ b/vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp @@ -52,7 +52,7 @@ bool dvmCompilerArchVariantInit(void) /* Target-specific configuration */ gDvmJit.jitTableSize = 1 << 9; // 512 gDvmJit.jitTableMask = gDvmJit.jitTableSize - 1; - if (gDvmJit.threshold != 0) { + if (gDvmJit.threshold == 0) { gDvmJit.threshold = 200; } gDvmJit.codeCacheSize = 512*1024; -- cgit v1.2.3