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

Monitors entered by JNI MonitorEnter aren't freed after thread quits normally

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • hotspot
    • None
    • beta
    • generic
    • generic
    • Verified

      This is very similiar to 6282335. But in this case thread can't be detached because of java frames in stack. It quits normally and native monitor isn't automatically freed. JNI spec says that DetachCurrentThread should free monitors, but normal exiting from java thread shouldn't be the worst case.
      See attach test code for details.
      ###@###.### 2005-06-23 10:41:35 GMT

            sbohne Steve Bohne (Inactive)
            azhmursunw Anatoly Zhmur (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: