--- a/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m Tue Sep 20 12:37:54 2016 +0530
+++ b/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m Tue Sep 20 21:26:33 2016 +0300
@@ -117,7 +117,7 @@
}
- (void)dealloc {
- JNIEnv *env = [ThreadUtilities getJNIEnv];
+ JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
if (self.runnable) {
(*env)->DeleteGlobalRef(env, self.runnable);
}
@@ -125,7 +125,7 @@
}
- (void)perform {
- JNIEnv* env = [ThreadUtilities getJNIEnv];
+ JNIEnv* env = [ThreadUtilities getJNIEnvUncached];
static JNF_CLASS_CACHE(sjc_Runnable, "java/lang/Runnable");
static JNF_MEMBER_CACHE(jm_Runnable_run, sjc_Runnable, "run", "()V");
JNFCallVoidMethod(env, self.runnable, jm_Runnable_run);