RFR: 8254711: Add java.security.Provider.getService JFR Event

Jaikiran Pai jpai at openjdk.org
Mon Sep 19 14:29:52 UTC 2022


On Wed, 27 Jul 2022 13:14:39 GMT, Sean Coffey <coffeys at 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


More information about the core-libs-dev mailing list