[concurrency-interest] Advice on tracking down the caller of Thread.interrupt()?

Elias Ross genman at noderunner.net
Wed Mar 21 15:55:36 EDT 2012


On Wed, Mar 21, 2012 at 12:25 PM, Bryan Thompson <bryan at systap.com> wrote:
> Hello,
>
> I am curious if there are any tricks for tracking down the source of an interrupt.
>That is, the Thread which actually invoked Thread.interrupt() on some thread.

Check out JBoss Byteman. There is an example very close to what you want to do:

https://community.jboss.org/wiki/ABytemanTutorial#how_do_i_inject_code_into_jvm_classes

I have used this tool to track down allocation issues before.


More information about the Concurrency-interest mailing list