summaryrefslogtreecommitdiffstats
path: root/src/dalvik_system_DexFile.cc
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2011-10-26 17:18:07 -0700
committerBrian Carlstrom <bdc@google.com>2011-10-26 21:43:27 -0700
commitb82b6878fb000d4731063b1bf15c39ff7c50b61f (patch)
tree8764bcc9307fb2f57820b25b1d098e15166a24bc /src/dalvik_system_DexFile.cc
parentbfe487be25652c5456236661b9d9c3579d2296c1 (diff)
downloadart-b82b6878fb000d4731063b1bf15c39ff7c50b61f.zip
art-b82b6878fb000d4731063b1bf15c39ff7c50b61f.tar.gz
art-b82b6878fb000d4731063b1bf15c39ff7c50b61f.tar.bz2
Make sure threads allocating are in the kRunnable state
Change-Id: I55a08fcd38b3388698ef571d2d4fa9553210e197
Diffstat (limited to 'src/dalvik_system_DexFile.cc')
-rw-r--r--src/dalvik_system_DexFile.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dalvik_system_DexFile.cc b/src/dalvik_system_DexFile.cc
index 40a1626..6ad92ba 100644
--- a/src/dalvik_system_DexFile.cc
+++ b/src/dalvik_system_DexFile.cc
@@ -154,6 +154,7 @@ void DexFile_closeDexFile(JNIEnv* env, jclass, jint cookie) {
}
jclass DexFile_defineClass(JNIEnv* env, jclass, jstring javaName, jobject javaLoader, jint cookie) {
+ ScopedThreadStateChange tsc(Thread::Current(), Thread::kRunnable);
const DexFile* dex_file = toDexFile(env, cookie);
if (dex_file == NULL) {
return NULL;