On Fri, 11 Jul 2025 15:02:38 GMT, Coleen Phillimore <cole...@openjdk.org> wrote:
> It's nice to be able to clean this code out but I also think it's being used. > Was there another mechanism that we suggest for instrumenting native methods? > And there was code once to prefix native methods so this adding private > method mechanism worked. > > Edit: I seem to remember TransferNativeFunctionRegistration code was for > instrumenting native methods that used adding and deleting static private > methods. So maybe this should be removed also as a follow-up? In fact, I have a big doubt we really want to get rid of this approach to instrument native methods calls. The same doubt is about lambda expressions change support. It feels we need more thinking on this and some kind of consensus on this. ------------- PR Comment: https://git.openjdk.org/jdk/pull/26232#issuecomment-3063405103