RFR: 8268406: Deallocate jmethodID native memory

Daniel D. Daugherty dcubed at openjdk.org
Fri Jun 13 19:39:56 UTC 2025


On Fri, 16 May 2025 12:18:42 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> In the future maybe we could throw NoSuchMethodError if you try to create a jmethodID out of an obsolete method and remove all this code. But that's not in this change.

Hmmm... I'm rusty with redefinition, but I think there are legitimate scenarios where is "okay"
to call an obsolete method. I believe it has to do with an in-progress call to a method being
redefined and you might get the obsolete method or the new method depending on timing.

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

PR Comment: https://git.openjdk.org/jdk/pull/25267#issuecomment-2971451618


More information about the hotspot-dev mailing list