changeset 5446:5880da7a3628

7123957: Switch of Gnome theme ends up deadlocked in GTKEngine.native_switch_theme Reviewed-by: art, anthony
author dcherepanov
date Tue, 05 Jun 2012 19:48:00 +0400
parents fc64530a1571
children 8c6fef8404ea
files src/solaris/native/sun/awt/swing_GTKEngine.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/awt/swing_GTKEngine.c	Tue Jun 05 15:20:13 2012 +0400
+++ b/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();
 }
 
 /*