RFR: 8268406: Deallocate jmethodID native memory [v10]

David Holmes dholmes at openjdk.org
Wed Jun 25 02:38:32 UTC 2025


On Tue, 24 Jun 2025 13:04:19 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> The jmethodID table is so that jmethodID isn't a stale pointer itself and doesn't require us to hold a stale pointer, but whether it can return a stale Method* (now and before this change) is something we should figure out how it should work.

That's fine. I (per my response to Thomas) thought the new approach also closed the door on unsafe usage of the `jMethodID`, but that is not the case. It probably does close the door quite a bit in relation to current approach though.

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

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


More information about the hotspot-dev mailing list