Bug 863490 - Part 2: Assert GetJNIEnv() is called on the correct thread. r=blassey

This commit is contained in:
Chris Peterson 2013-04-18 16:58:20 -07:00
parent adb2bf751a
commit 5c0bbb4be1

View File

@ -124,6 +124,7 @@ public:
__android_log_print(ANDROID_LOG_INFO, "AndroidBridge",
"###!!!!!!! Something's grabbing the JNIEnv from the wrong thread! (thr %p should be %p)",
(void*)pthread_self(), (void*)sBridge->mThread);
MOZ_ASSERT(false, "###!!!!!!! Something's grabbing the JNIEnv from the wrong thread!");
return nullptr;
}
return sBridge->mJNIEnv;
@ -131,7 +132,7 @@ public:
}
return nullptr;
}
static jclass GetGeckoAppShellClass() {
return sBridge->mGeckoAppShellClass;
}