Harmony
  1. Harmony
  2. HARMONY-1789

[DRLVM] Race condition between Thread.interrupt and Object.wait, Thread.sleep or join

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DRLVM
    • Labels:
      None
    • Estimated Complexity:
      Moderate

      Description

      According to the specification wait/join or sleep methods should check if thread was interrupted before entering wait. DRLVM hythread implmentation do checks interrupted status(see hythread condition implmentation), however thread may be interrupted just after the status was checked and before entering condition wait. Thus it's required to ensure that waiting state will be reached having interrupted status unchanged.

      1. Test.java
        1 kB
        Nikolay Kuznetsov
      2. HARMONY1789.java
        1 kB
        Salikh Zakirov
      3. H-1789-updated.patch
        10 kB
        Salikh Zakirov
      4. H-1789.patch
        11 kB
        Nikolay Kuznetsov

        Issue Links

          Activity

            People

            • Assignee:
              Alexey Varlamov
              Reporter:
              Nikolay Kuznetsov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development