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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • DRLVM
    • None
    • 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.

      Attachments

        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

              varlax Alexey Varlamov
              nikolay.kuznetsov Nikolay Kuznetsov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: