On Wed, 27 Jul 2022 13:14:39 GMT, Sean Coffey <coff...@openjdk.org> wrote:

> Add a JFR Event for `java.security.Provider.getService(String type, String 
> algorithm)` calls.

src/java.base/share/classes/java/security/Provider.java line 1293:

> 1291:         }
> 1292: 
> 1293:         if (s != null && SecurityProviderServiceEvent.isTurnedOn()) {

Would it be useful to generate an event even for the cases where a call to this 
method was made but no service was available and `null` was returned? The event 
perhaps could capture  that there was no service found for such type/algorithm 
combination? That would help identify usages in applications where there might 
be fallbacks being used when this method returns null?

-------------

PR: https://git.openjdk.org/jdk/pull/9657

Reply via email to