RFR: 8268406: Deallocate jmethodID native memory [v2]
Daniel D. Daugherty
dcubed at openjdk.org
Mon Jun 16 23:23:30 UTC 2025
On Mon, 16 Jun 2025 17:32:20 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> It's really unusual in our source code to pass const Metadata pointers because of the history of the code. We should probably start doing that. I'll change this to const and see if there's a fall out.
>
> Much of the metadata parameter declarations aren't const-safe. Adding this one const has a big fall-out leading to some jni calls. This would be is a good project and we should have it for new code, which some of this is. I'll see if can add any consts.
Thanks for investigating!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25267#discussion_r2151047748
More information about the hotspot-dev
mailing list