I want to use byteman to intercept calls to Thread.interrupt() using a rule like the following:
RULE check who is calling Thread.interrupt() CLASS java.lang.Thread METHOD interrupt() AT ENTRY IF TRUE DO traceStack("\*\*\* called interrupt on thread " + $0 + " from thread " + Thread.currentThread(), 50) ENDRULE
After setting up this rule and testing a Thread.interrupt() call, no logging is generated.
- Red Hat JBoss Enterprise Application Platform (EAP)
- OpenJDK 8
- OpenJDK 11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.