mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 863490 - Part 2: Assert GetJNIEnv() is called on the correct thread. r=blassey
This commit is contained in:
parent
adb2bf751a
commit
5c0bbb4be1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user