RFR: 8291736: find_method_handle_intrinsic leaks Method*

Coleen Phillimore coleenp at openjdk.org
Thu Aug 25 11:35:57 UTC 2022


On Thu, 25 Aug 2022 00:11:45 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Why not just use created to determine whether to delete the method to be thrown away?

I had a version of this that crashed because we create an adapter and a native wrapper so removing the Method* through add_to_deallocate_list lead to a dangling pointer from the code cache.
This seems simpler.

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

PR: https://git.openjdk.org/jdk/pull/9983


More information about the hotspot-runtime-dev mailing list