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

Thread interrupt and Thread.stop may not work properly if thread is waiting

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DRLVM
    • Labels:
      None

      Description

      Thread.interrupt and Thread.stop may not wake up a thread if it's waiting. The problem here is that both hythread_stop and hythread_interrupt do
      hythread_notify instead of hythread_notify_all on current condition the thread is waiting on, while this notification may not affect target thread.

        Attachments

        1. Test2.java
          1 kB
          Nikolay Kuznetsov
        2. Test.java
          1 kB
          Nikolay Kuznetsov
        3. stop_interrupt_waited.patch
          1 kB
          Nikolay Kuznetsov

          Issue Links

            Activity

              People

              • Assignee:
                geir Geir Magnusson Jr
                Reporter:
                nikolay.kuznetsov Nikolay Kuznetsov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: