Integrated: 6887: Agent instrumentation fails silently if method descriptors don't match
    Joshua Matsuoka 
    jmatsuoka at openjdk.java.net
       
    Thu Aug 20 17:13:58 UTC 2020
    
    
  
On Wed, 19 Aug 2020 22:32:17 GMT, Joshua Matsuoka <jmatsuoka at openjdk.org> wrote:
> Hi,
> 
> This PR addresses JMC-6887. Currently when the agent is given an XML description that has an otherwise correct probe
> definition, but an incorrect method descriptor the instrumentation will inject the event classes but not the method,
> essentially failing silently.  The JFRTransformDescriptor will now track whether the ClassVisitor has found a matching
> method or not, and in the event that the ClassVisitor reaches the end of the class without finding a matching method it
> will log a warning to the user that no matching method was found. This will also catch the case where a non-existent
> method is specified for instrumentation, which will currently fail silently in the same way.
This pull request has now been integrated.
Changeset: 76d656cd
Author:    Joshua Matsuoka <jmatsuoka at openjdk.org>
URL:       https://git.openjdk.java.net/jmc/commit/76d656cd
Stats:     142 lines in 4 files changed: 0 ins; 141 del; 1 mod
6887: Agent instrumentation fails silently if method descriptors don't match
Reviewed-by: hirt
-------------
PR: https://git.openjdk.java.net/jmc/pull/105
    
    
More information about the jmc-dev
mailing list