changeset 5082:541554bd5ac7

7123957: Switch of Gnome theme ends up deadlocked in GTKEngine.native_switch_theme Reviewed-by: anthony, art
author dcherepanov
date Mon, 18 Jun 2012 13:08:30 +0400
parents 14f6a89d8bf2
children 373d63f37303
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	Fri Jun 15 13:44:32 2012 -0700
+++ b/src/solaris/native/sun/awt/swing_GTKEngine.c	Mon Jun 18 13:08:30 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();
 }
 
 /*