Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6627356

Try to preserve Lock invariants even when faced with Thread.stop

XMLWordPrintable

      If you launch the following applet and then click on the browsers reload button, you will get the exception below. However, if you open a 2nd browser tab and launch the applet there as well, you will not get that exception when you click on the browsers reload button on either the 1st or 2nd tab containing the applets. This happens on both IE and FireFox. I tested this on WindowsXP using 6u5-b07.

      Applet: http://swinglabs.java.sun.com/iris/

      Exception in thread "pool-6-thread-1" java.lang.IllegalMonitorStateException
         at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(Unknown Source)
         at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(Unknown Source)
         at java.util.concurrent.locks.ReentrantLock.unlock(Unknown Source)
         at java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
      Editor.rebuildScaledImages

            martin Martin Buchholz
            sjchan Steven Chan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: