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

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

    XMLWordPrintableJSON

Details

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: