commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bugs #12301] Broken Monitor[Exit|Enter] in AWT code


From: anonymous
Subject: [commit-cp] [bugs #12301] Broken Monitor[Exit|Enter] in AWT code
Date: Sun, 13 Mar 2005 19:12:51 +0000
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7.6) Gecko/20050306 Firefox/1.0.1 (Debian package 1.0.1-2)

Follow-up Comment #1, bugs #12301 (project classpath):

 354 JNIEXPORT void JNICALL 

 355 Java_gnu_java_awt_peer_gtk_GtkToolkit_iterateNativeQueue

 356 (JNIEnv *env, 

 357  jobject self __attribute__((unused)),

 358  jobject lockedQueue,

 359  jboolean block)

 360 {

...

 370   struct timeval init;

 371   gettimeofday(&init, NULL);

 372 

 373   gdk_threads_enter ();

 374   (*env)->MonitorExit (env, lockedQueue);



breaks the rules of structured locking outlined in the JVM specification at:



http://java.sun.com/docs/books/vmspec/2nd-edition/html/Threads.doc.html#22500



Note that "Implementations of the Java virtual machine are permitted but not
required to enforce both of the following two rules guaranteeing structured
locking."



As it is "permitted", one can deduce that code submitted to a JVM must abide
by the rules of stuctured locking (which would make sense, in any case).



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=12301>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]