Harmony
  1. Harmony
  2. HARMONY-1592

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development