[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-hotspot-runtime-dev
Subject:    Re: RFR (S) 8181171: Deleting method for RedefineClasses breaks ResolvedMethodName
From:       coleen.phillimore () oracle ! com
Date:       2019-02-25 22:46:13
Message-ID: 7490dac9-0626-1650-7d22-e5ca0ce5a7c8 () oracle ! com
[Download RAW message or body]


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

On 2/22/19 10:13 PM, serguei.spitsyn@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@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
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic