On Mon, 11 Apr 2022 07:33:20 GMT, ExE Boss <d...@openjdk.java.net> wrote:
> Maybe it should use a `MethodHandle` fetched using `IMPL_LOOKUP` instead, in > order to avoid the runtime overhead of going through `CallerSensitive` > methods (`Class.forName` and `Constructor.newInstance`). > > It should probably also be cached. It is cached. It's also a very exceptional case that only arises when the SC API (separate JEP, not here) is used incorrectly. ------------- PR: https://git.openjdk.java.net/jdk/pull/8166