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. 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

          Gavin made changes -
          Link This issue depends upon HARMONY-1816 [ HARMONY-1816 ]
          Gavin made changes -
          Link This issue depends on HARMONY-1816 [ HARMONY-1816 ]
          Geir Magnusson Jr made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Geir Magnusson Jr made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Nikolay Kuznetsov made changes -
          Attachment Test2.java [ 12343065 ]
          Nikolay Kuznetsov made changes -
          Link This issue depends on HARMONY-1816 [ HARMONY-1816 ]
          Pavel Rebriy made changes -
          Link This issue blocks HARMONY-1772 [ HARMONY-1772 ]
          Geir Magnusson Jr made changes -
          Assignee Geir Magnusson Jr [ geir ]
          Pavel Rebriy made changes -
          Link This issue blocks HARMONY-1772 [ HARMONY-1772 ]
          Nikolay Kuznetsov made changes -
          Attachment Test.java [ 12342481 ]
          Nikolay Kuznetsov made changes -
          Field Original Value New Value
          Attachment stop_interrupt_waited.patch [ 12341724 ]
          Nikolay Kuznetsov created 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