7123957: Switch of Gnome theme ends up deadlocked in GTKEngine.native_switch_theme
authordcherepanov
Tue, 05 Jun 2012 19:48:00 +0400
changeset 12831 7f4c93656785
parent 12830 c5a77c735e39
child 12832 95c583ed43e1
7123957: Switch of Gnome theme ends up deadlocked in GTKEngine.native_switch_theme Reviewed-by: art, anthony
jdk/src/solaris/native/sun/awt/swing_GTKEngine.c
--- a/jdk/src/solaris/native/sun/awt/swing_GTKEngine.c	Tue Jun 05 15:20:13 2012 +0400
+++ b/jdk/src/solaris/native/sun/awt/swing_GTKEngine.c	Tue Jun 05 19:48:00 2012 +0400
@@ -323,9 +323,8 @@
 JNIEXPORT void JNICALL Java_com_sun_java_swing_plaf_gtk_GTKEngine_native_1switch_1theme(
         JNIEnv *env, jobject this)
 {
-    fp_gdk_threads_enter();
+    // Note that flush_gtk_event_loop takes care of locks (7053002)
     flush_gtk_event_loop();
-    fp_gdk_threads_leave();
 }
 
 /*