summaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorAbhishek Arpure <aarpure@codeaurora.org>2014-04-16 18:51:31 +0530
committerSteve Kondik <shade@chemlab.org>2014-05-01 18:32:20 -0700
commitc32e5ea685dae78fa0883db35d02ffd3daf94665 (patch)
tree36e06bb07471923b9fc8877f10c6c862d1be11c4 /vm
parent052e0b411754d99a713ef6383e3417a19c371f6a (diff)
downloadandroid_dalvik-c32e5ea685dae78fa0883db35d02ffd3daf94665.tar.gz
android_dalvik-c32e5ea685dae78fa0883db35d02ffd3daf94665.tar.bz2
android_dalvik-c32e5ea685dae78fa0883db35d02ffd3daf94665.zip
Dalvik :Increase the upper limit check for DexOpt Deps table
Increasing upper limit check for the Deps table as additonal jars added causes the dalvik to crash while performing dexopt on cached jar files. This is needed for passing cts test case which is part of libcore.java.util.jar.DalvikExecTest class Change-Id: I5431238839712499122eb35132599230d8610de8 CRs-Fixed:621955
Diffstat (limited to 'vm')
-rw-r--r--vm/analysis/DexPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/analysis/DexPrepare.cpp b/vm/analysis/DexPrepare.cpp
index 14e3732b9..61d579701 100644
--- a/vm/analysis/DexPrepare.cpp
+++ b/vm/analysis/DexPrepare.cpp
@@ -1153,7 +1153,7 @@ static const u1* getSignature(const ClassPathEntry* cpe)
* If this changes, update DEX_OPT_MAGIC_VERS.
*/
static const size_t kMinDepSize = 4 * 4;
-static const size_t kMaxDepSize = 4 * 4 + 2784; // sanity check
+static const size_t kMaxDepSize = 4 * 4 + 3056; // sanity check
/*
* Read the "opt" header, verify it, then read the dependencies section