aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTapas Pradhan <tpradhan@codeaurora.org>2014-07-24 19:07:23 +0530
committerLorDClockaN <davor@losinj.com>2014-09-14 19:57:27 +0200
commitc789eba07217fab9d3dd9f68af7e805e3a90efda (patch)
treec4823e546c04202350ed33f2158c63b65aa1d9c1
parent3f8d7e84055d3e9368e068b8ef363549f47354b2 (diff)
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: I13e7f4b0a5f9fe11fceb447ae3f64e8dc4ccf164 CR:697166
-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 753b6fee0..0130389f5 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 + 3200; // sanity check
+static const size_t kMaxDepSize = 4 * 4 + 3344; // sanity check
/*
* Read the "opt" header, verify it, then read the dependencies section