Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-3139

[drlvm] [thread] interrupt is not caught in condvar_wait_impl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      When thread is being interrupted during after entering condvar_wait_impl and checking INTERRUPTED flag and before waiting on condition InterruptedException is not thrown. Patch from HARMONY-1789 could solve this issue by introducing special interrupter thread that would wait for condition to be waited on and corresponding mutex unlocked and interrupt the thread only after that. Patch from HARMONY-2217 removed interrupter thread.

      Salikh wrote test which shows the bug and it shows that same bug appears in Sun's JDK 1.5.0_05.

      Attachments

        1. CatchInterrupt.java
          3 kB
          Peter Novodvorsky

        Activity

          People

            wjwashburn Weldon Washburn
            nidd Peter Novodvorsky
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: