[8u] RFR JDK-8161144: Fix for JDK-8147451 failed: Crash in Method::checked_resolve_jmethod_id(_jmethodID*)
Coleen Phillimore
coleen.phillimore at oracle.com
Mon Jul 25 12:21:36 UTC 2016
This looks good. Was this a backport or is it still broken in 9?
thanks,
Coleen
On 7/25/16 7:53 AM, Shafi Ahmad wrote:
> Hi,
>
> Please review the small code change for bug: "JDK-8161144: Fix for JDK-8147451 failed: Crash in Method::checked_resolve_jmethod_id(_jmethodID*)" on jdk8u-dev
>
> Summary:
> Method::deallocate_contents() should clear 'this' from list of Methods in JNIMethodBlock, similarly to clear_all_methods() does it, when class is unloaded.
> After this change I am seeing Method::is_method_id() is getting called with NULL and I have done below change to avoid crash
>
> - assert(m != NULL, "should be called with non-null method");
> + if (m == NULL) {
> + return false;
> + }
>
> Webrev: http://cr.openjdk.java.net/~shshahma/8161144/webrev/
> Jdk8 bug: https://bugs.openjdk.java.net/browse/JDK-8161144
>
> Test: Run jprt
>
> Regards,
> Shafi
More information about the hotspot-runtime-dev
mailing list