diff options
author | Brian Carlstrom <bdc@google.com> | 2011-10-26 17:18:07 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2011-10-26 21:43:27 -0700 |
commit | b82b6878fb000d4731063b1bf15c39ff7c50b61f (patch) | |
tree | 8764bcc9307fb2f57820b25b1d098e15166a24bc /src/dalvik_system_DexFile.cc | |
parent | bfe487be25652c5456236661b9d9c3579d2296c1 (diff) | |
download | art-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.cc | 1 |
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; |