Uploaded image for project: 'JikesRVM'
  1. JikesRVM
  2. RVM-62

Interrupted exceptions are generated in the caller of Thread.interrupt instead of by the thread throwing the interrupted exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 2.9.0.1, 2.9.0
    • Fix Version/s: 2.9.2
    • Labels:
      None
    • Environment:

      All

      Description

      An interrupted method should throw an exception with the stack trace populated from the thread that is interrupted, such as:

      java.lang.InterruptedException: sleep interrupted
      at java.lang.Thread.sleep(Native Method)
      at test$1.run(test.java:5)

      Our interrupted exceptions are currently generated in the context of the thread interrupting the others execution.

        Attachments

          Activity

          dgrove David Grove created issue -
          Hide
          ianrogers Ian Rogers added a comment -

          Perversely ThreadDeath errors reported by stopping (deprecated) a thread give a stack trace from the point the stop was called.

          Show
          ianrogers Ian Rogers added a comment - Perversely ThreadDeath errors reported by stopping (deprecated) a thread give a stack trace from the point the stop was called.
          Hide
          ianrogers Ian Rogers added a comment -

          Fixed as of r13106.

          Show
          ianrogers Ian Rogers added a comment - Fixed as of r13106.
          dgrove David Grove made changes -
          Field Original Value New Value
          Workflow jira [ 17927 ] X10 Workflow [ 18798 ]
          dgrove David Grove made changes -
          Priority Minor [ 7 ] Low [ 4 ]

            People

            • Assignee:
              ianrogers Ian Rogers
              Reporter:
              ianrogers Ian Rogers
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: