RFR (S) 8181171: Deleting method for RedefineClasses breaks ResolvedMethodName

coleen.phillimore at oracle.com coleen.phillimore at oracle.com
Mon Feb 25 22:46:13 UTC 2019


Hi Serguei, Thank you for reviewing. I guess I didn't answer this mail.

On 2/22/19 10:13 PM, serguei.spitsyn at oracle.com wrote:
> Hi Coleen,
>
> It looks good to me.
>
> Just a couple of minor comments.
>
> http://cr.openjdk.java.net/~coleenp/2019/8181171.01/webrev/src/java.base/share/classes/jdk/internal/misc/Unsafe.java.udiff.html
> + * Throws NoSuchMethodError; for use by the VM for redefinition support.
> + * @since 1.12
> + */
>  Replace: 1.12 => 13
>
>  There was already similar error in this file:
> 3117      * @since 1.9
> but:
> 3397      * @since 9
>
> I guess, there first one is incorrect.

I fixed these two, mine to 13 and this one to 9.
>
> http://cr.openjdk.java.net/~coleenp/2019/8181171.01/webrev/test/jdk/java/lang/instrument/RedefineAddDeleteMethod/DeleteMethodHandle/redef/Xost.java.html
>    24 public class Xost {
>    25     // Remove static private methods, in A in redefinition.
>    26     static class A { }
>    27     // Removed public method to get this to compile, but we don't
>    28     // try to redefine Xhost.
>  I guess, it is better to say redefine Host instead of Xhost.
>

Ok, I changed it to Host even though it Xost. :)

thanks,
Coleen
>
> No need in new webrev.
>
> Thanks,
> Serguei
>
>
> On 2/22/19 3:36 PM, coleen.phillimore at oracle.com wrote:
>> 8210457: JVM crash in ResolvedMethodTable::add_method(Handle)
>> Summary: Add a function to call NSME in ResolvedMethodTable to 
>> replace deleted methods.
>>
>> This Unsafe.throwX trick is also used for vtable initialization for 
>> throwing IllegalAccessError.  Tested with redefinition tests in the 
>> repository and tier1-3, and added tests.
>>
>> open webrev at 
>> http://cr.openjdk.java.net/~coleenp/2019/8181171.01/webrev
>> bug link https://bugs.openjdk.java.net/browse/JDK-8181171
>>
>> Thanks,
>> Coleen
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20190225/66f07936/attachment-0001.html>


More information about the serviceability-dev mailing list