RFR: 8358890: VM option -XX:AllowRedefinitionToAddDeleteMethods should be obsoleted then expired [v3]

Serguei Spitsyn sspitsyn at openjdk.org
Fri Jul 11 19:01:48 UTC 2025


On Fri, 11 Jul 2025 15:02:38 GMT, Coleen Phillimore <coleenp at 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


More information about the hotspot-dev mailing list