summaryrefslogtreecommitdiffstats
path: root/src/dalvik_system_DexFile.cc
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-01-12 14:49:18 -0800
committerElliott Hughes <enh@google.com>2012-01-12 14:49:18 -0800
commitb3e66dfcd069db8818cd902d787ff1d7bbca45f2 (patch)
treeb2fb80c539a6d7c51ae978376390a895f6f9ef7c /src/dalvik_system_DexFile.cc
parent01646a0d8103e5e73ed53e4d36593a1cc3c26a03 (diff)
downloadart-b3e66dfcd069db8818cd902d787ff1d7bbca45f2.zip
art-b3e66dfcd069db8818cd902d787ff1d7bbca45f2.tar.gz
art-b3e66dfcd069db8818cd902d787ff1d7bbca45f2.tar.bz2
Minor fixes.
Fix a crash when shutting down if a daemon thread suspended while holding the heap lock. For some reason, presumably involving extra daemon threads, CTS hits this a lot. Silently ignore a couple of dalvikvm options for backwards compatibility. This makes CTS less noisy. Remove redundant parentheses that would make it easy for us to introduce a ==/= bug. Change-Id: Id44eab29ce393a85585459c280ad47c5a5c749b9
Diffstat (limited to 'src/dalvik_system_DexFile.cc')
-rw-r--r--src/dalvik_system_DexFile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dalvik_system_DexFile.cc b/src/dalvik_system_DexFile.cc
index de3e6d6..a14f124 100644
--- a/src/dalvik_system_DexFile.cc
+++ b/src/dalvik_system_DexFile.cc
@@ -144,7 +144,7 @@ static jint DexFile_openDexFile(JNIEnv* env, jclass, jstring javaSourceName, jst
static const DexFile* toDexFile(JNIEnv* env, int dex_file_address) {
const DexFile* dex_file = reinterpret_cast<const DexFile*>(static_cast<uintptr_t>(dex_file_address));
- if ((dex_file == NULL)) {
+ if (dex_file == NULL) {
jniThrowNullPointerException(env, "dex_file == null");
}
return dex_file;